12-08-2008, 04:30 AM
hi all,
Working on a web application and use a
Script waits till the (browser) page loads. But the problem is if a particular button is not clicked the page does not go to the next page, It simply refreshes
now QTP recognizes it as a new page and runs the script and ultimately stops.
All the pages have first two hierarchy same : Browser("xyz").Page("abc_1")
Browser("xyz").page("abc_2')
...........and so on
Can anybody suggest how to uniquely identify each web page.
Working on a web application and use a
Code:
'Do while loop
loop Until Browser.Exist(1)
Script waits till the (browser) page loads. But the problem is if a particular button is not clicked the page does not go to the next page, It simply refreshes
now QTP recognizes it as a new page and runs the script and ultimately stops.
All the pages have first two hierarchy same : Browser("xyz").Page("abc_1")
Browser("xyz").page("abc_2')
...........and so on
Can anybody suggest how to uniquely identify each web page.