10-14-2011, 07:29 PM
(This post was last modified: 10-14-2011, 07:30 PM by v.swaminathan.)
Hi.. It looks like the brackets (in page) and the double quotes are not correct in your line of code..
Actual:
Expected:
Please try with the above(Expected) one...
Ensure that the values you pass for the strBrowserTitle and strPageTitle are also correct.
Incase you are not sure, then try the below one (but ensure that u have opened only one IE browser at the time of execution)..
Actual:
Code:
strNewURL = Browser(“title:=”&strBrowserTitle&”").Page”title:=”&strPageTitle&”").GetROProperty(“url”)
Expected:
Code:
strNewURL = Browser("title:="& strBrowserTitle).Page("title:="& strPageTitle).GetROProperty("url")
Please try with the above(Expected) one...
Ensure that the values you pass for the strBrowserTitle and strPageTitle are also correct.
Incase you are not sure, then try the below one (but ensure that u have opened only one IE browser at the time of execution)..
Code:
strNewURL = Browser("name:=.*").Page("title:=.*").GetROProperty("url")