Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting the value based on link existence
#1
Not Solved
If a link exist, I want to set the value of an object?

This is what I have:

Code:
Iteration = DataTable.GlobalSheet.GetCurrentRow
If  Browser("...").Page("...").Link("...").Exist (1)=True Then Object1= 1 Else Object1 = 0 End If

If Object1 = 1 Then
<-------snip------->
ElseIf Iteration = 5 Then
<-------snip------->
End If
End If

If Object1 = 0 Then
<-------snip------->
ElseIf Iteration = 5 Then
<-------snip------->
End If
End If

When running the code, it seems sto stop, without error, after the existence check, i.e. none of the "if object1 = 1/0" lines run.

What am I doing wrong here?

Iterations = 0 if not parameterized therefore the if statements never = 1/2/3/4/5
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Setting value in a WinObject Ansh123 0 4,177 03-20-2014, 09:44 PM
Last Post: Ansh123
  Setting values in Tabstrip TonyBarker 0 1,752 01-25-2013, 03:32 PM
Last Post: TonyBarker
  Setting up the Scheduler mv8167 3 4,212 03-22-2012, 03:20 AM
Last Post: swathi
Shy Setting a html path to a variable mv8167 2 3,002 09-29-2011, 10:42 PM
Last Post: mv8167
  Check existence of web objects on page eltee 5 12,326 03-16-2011, 05:22 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)