Creating a reusable function
I am trying to create a function that I can re-use throughout my testing. I want to make sure that a certain set of links appear on every page, but I don't want to rewrite the same code over and over for each page. Is there a way that I can script the syntax so that if will automatically verify if the certain set of links are on each page? I want to thank you in advance for all of your help. [img]images/icons/rolleyes.gif[/img]
Re: Creating a reusable function
One way would be to write a check-links() method that would be called from the Invoke routine of a derived class variant. Then apply that class to the declaration of each affected page. Whenever they are invoked, the links would be checked.