Get URL value dynamically through QTP

January 20, 2009



well,if you need the code to find out URL of the current page you can use below written code.

---------------------------

ivar=Browser("Micclass:=Browser").Page("micClass:=Page").GetRoProperty("URL")
msgbox ivar

---------------------------
This will return the URL name.

yeah you got it right.But don't go away,I have some morethings in my kitty.
If you want to understand the original things and more about this please refer the below link.
http://motevich.blogspot.com/2008/06/qtp-get-current-browser-url.html

You Might Also Like

1 comments

  1. Hello......
    Please tell me how to use database checkpoint in QTP for for web applications...


    Thanks.
    Shashank

    ReplyDelete