I am trying to make simple testing but failed because I have no clue how to handle with browser title that changes during the testing.
Simple example:
Google>Find “blabol”
Once its done, the browser title in QTP changes its name to “Google – results….”. This is obviously problem when the search text is a variable that changes between iterations because the browser text is hardcoded.
I would need something like “this browser” and “this page”, if you get what I mean.
Thanks
In a couple of words, you can use a variety of properties for identification of the object in QTP, and you can use Regular Expressions to add even more flexibility.
For example, in your case, possible ways to address web browser would be the following.
1) Addressing first browser window (first opened) and any page
2) If you assume that you always work with Google page.
3) Addressing page with particular search results
Thank you,
Albert Gareev
http://automation-beyond.com/