QTP - Getting Current Browser URL
QTP - Getting Current Browser URL
QTP - Getting Current Browser URL
I'm going to show and explain how to get current URL which is opened in
a browser.
For example, how to get URL "http://motevich.blogspot.com" from the following
browser:
Browser("bname").Page("pname").GetRoProperty("URL")
Browser("bname").Page("pname").Object.URL
Tip: You can use DOM Object when running QTP test on Internet
Explorer only!
To make the long story short, I can say that using Object property you can
get almost all elements and properties from Web page.
Summary:
Two ways were discussed: