I am navigating through the links programmatically in my test application. some of the links open the new window and I need to verify information on new window (Pop Up window).
How can I access the components (links,textboxes,buttons) on the new pop up window? I am not using recording feature everything I need to do programatically.
Appericiate your help.
Thanks in advance.
Use CreationTime:=1 as DP for browser and then the object statements for the object that you want to access.
Tarun Buy the NEW QTP Descriptive Programming Unplugged Book ** Download QTP Unplugged 2nd Edition eBook for FREE **
Thanks a lot it worked.
For others reference I am putting my code here:
browser_title = Browser("creationtime:=1").getroproperty("title")
My case was different, my link opened up a whole new browser, and I need to validate the content of what is in this new page. I still could use the code above with some amendments.
Compare = Browser("CreationTime:=1").Page("CreationTime:=1") .WebElement("html tag:=TD" , "index:=0").GetROProperty("innertext")
- How many testers do you need to switch a light bulb? None, we just report it's dark -