How to retrieve current page URL using VBscript

2,176 views
Skip to first unread message

Seema Mali

unread,
May 12, 2011, 3:25:52 AM5/12/11
to Mercu...@googlegroups.com
Hi all....
             I need to retrieve current page URL using Vbscript. Please any one help me to get the result.

Thanks in advance.

Best Regards
Seema

Karthikeyan

unread,
May 12, 2011, 4:17:43 AM5/12/11
to mercu...@googlegroups.com
Use the following dp statement to access the current URL:

currentURL = Browser("title:=Home").Page("title:=Home").GetROProperty("url")

Regards,
Karthik

--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

suman ch

unread,
May 12, 2011, 5:22:34 AM5/12/11
to mercu...@googlegroups.com
Hi,
 
Browser("abc").GetROProperty("URL"). 
 
Try this

--

Kamran

unread,
May 12, 2011, 10:15:22 AM5/12/11
to mercu...@googlegroups.com

currentURL = Browser("title:=Home").Page("title:=Home").GetROProperty("openurl")
--
Regards,
Kamran

Shanmukha Bollapragada

unread,
May 12, 2011, 10:49:52 AM5/12/11
to mercu...@googlegroups.com
I don't think there is a property called openurl, there is url

Kamran

unread,
May 12, 2011, 1:33:22 PM5/12/11
to mercu...@googlegroups.com
it would be available in object property.


OpenUrl.jpg
OpenUrl.jpg

Seema Mali

unread,
May 13, 2011, 3:02:48 AM5/13/11
to mercu...@googlegroups.com
Hi friends....
               I got the result. Thanks for sharing your views.

Regards
Seema

Karthikeyan

unread,
May 13, 2011, 7:20:50 AM5/13/11
to mercu...@googlegroups.com
Hi Seema,

Can you please share your findings/result as well, pls?

Regards,
Karthik
Reply all
Reply to author
Forward
0 new messages