Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If page does not exist - skip go to another action
#4
Not Solved
Then try this,
Code:
For i= 1 To MaxCount
' use any property value, i have taken text to describe here for example
If (Browser().Page().WebButton("text:=Next").Exists(0)) Then
     Browser().Page().WebButton("text:=Next").Click
   ' Here do what ever you want
   ' Call the "actionPage"&i >> here you can use i to call the particular action.
End If
Reply


Messages In This Thread
RE: If page does not exist - skip go to another action - by KavitaPriyaCR - 10-12-2010, 09:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  General run error when Exist fails msacks 1 1,851 02-08-2019, 02:12 AM
Last Post: Ankur
  [UFT 12.52/VBScript] Test object exist, is visible and enabled before take an action sparkwanted 0 3,640 02-07-2017, 12:28 AM
Last Post: sparkwanted
  how to find Excel file exist or not in vbscript code sree.85 3 11,239 08-22-2013, 11:42 AM
Last Post: akhandesh
  Remote server machine does not exist eroshan 5 14,229 05-06-2013, 06:03 PM
Last Post: Saket
  Difference between parameter tabs in Action Properties and Action Call Properties. vibhakhandelwal 0 4,041 11-16-2011, 01:34 PM
Last Post: vibhakhandelwal

Forum Jump:


Users browsing this thread: 2 Guest(s)