| || |
How to compare two screens of web application?
I am testing one web application and as part of GUI testing i need to check all links are working properly. So if i record a page once, when i am checking a link how can i make sure that i am getting this page properly. in short i recorded say page 1, when i am checking a link i got page x. How to chekc (in simple way) such that page 1 = page x.
Re: How to compare two screens of web application?
Typically I look for something unique on that page, and verify that it exists. It would be nice to just say bFound = Page1.Exists(5) or something like that, but in our situation, many of the windows/pages are recognized as being a page that they are not. So, I will look for an HtmlHeading or particular field that I know is on no other page. If that Heading or field exists, then I know I am on the correct page, do a Browser.Back.Click() and check the next link in my list.
Is this what you are asking?
Here's a snippet of code that does this...