05-14-2008, 04:02 PM
Hi,
i'm a beginner in QTP and VBScript.
i would like to get the url af the current page.
I tryed to print the url on a message box like following:
In return, i have a emplty messagebox. That means the url was not captured.
I tried also MsgBox Browser("Browser").GetROProperty("openURL"). But this line gives the first opened URL.
do anyone can advice on this subject?
Thank you in advance.
i'm a beginner in QTP and VBScript.
i would like to get the url af the current page.
I tryed to print the url on a message box like following:
Code:
MsgBox Browser("Browser").GetROProperty("url")
In return, i have a emplty messagebox. That means the url was not captured.
I tried also MsgBox Browser("Browser").GetROProperty("openURL"). But this line gives the first opened URL.
do anyone can advice on this subject?
Thank you in advance.