Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetROProperty URL redirect
#1
Not Solved
Hi,

We have a test which sometimes fails and redirects to sitename/error I would like to build a check into the test to confirm that if the url is equal to the above then fail.

One of the first bits of coding I have is
Code:
Do
  Wait 1
Loop While Browser("Browser").Page("Page").Frame("openDocChildFrame").WebEdit("CrystalReportViewer_p0Discrete").Exist = False

What I would like to do is while we are waiting for the object to appear if the site fails I will get redirected to http://sitename/Error if this is the case I want to fail the test.

I am thinking of adding an IF URL is = to http://sitename/Error Then Services.EndTransaction...

is this the best way of implementing this type of check?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems with URL as Object identifier??? jcraig26 1 3,162 02-27-2013, 05:06 PM
Last Post: anil2u
Smile How to Select GetROproperty value in GUI sangitarm 2 4,392 10-15-2012, 11:52 PM
Last Post: agarwl.anurag
  url value sia sharma 0 2,123 07-02-2012, 12:30 PM
Last Post: sia sharma
  GetROProperty help mv8167 1 2,655 06-26-2012, 11:53 PM
Last Post: supputuri
  split the values in url ....................... rjkmr.aiht 3 4,238 05-21-2012, 06:09 PM
Last Post: Ankesh

Forum Jump:


Users browsing this thread: 1 Guest(s)