Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
‘General Run Error’ when trying to fetch URL in Browser Address Bar with DP
#6
Not Solved
Hi.. It looks like the brackets (in page) and the double quotes are not correct in your line of code..

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")
Reply


Messages In This Thread
RE: ‘General Run Error’ when trying to fetch URL in Browser Address Bar with DP - by v.swaminathan - 10-14-2011, 07:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  General run error when Exist fails msacks 1 1,868 02-08-2019, 02:12 AM
Last Post: Ankur
  Take Entire screen shot including scroll bar. venkatesh9032 0 1,867 12-26-2016, 06:14 PM
Last Post: venkatesh9032
  How to press the space bar with send keys method Hari Prasad 5 25,251 06-03-2016, 10:47 AM
Last Post: Vijayaragavan.thangam
  General Object Error(Find Object Error) akhandesh 1 3,620 02-24-2016, 01:05 PM
Last Post: sindhus
Rolleyes The test run cannot continue due to an unrecoverable error neerndg123 3 8,675 09-17-2015, 08:27 PM
Last Post: ananthakumarbe

Forum Jump:


Users browsing this thread: 3 Guest(s)