VIns, Thank you for giving me this hint about the object is visible or not! I turn it around and troubleshoot and I use what you post to my advantage and guess what, it works!
But I am very very confused!
'This code works!
'This code did not work for me AND I WANT TO USE THIS ONE! Please help
'This code did not work for me
I want to use the middle code. (See my comment) I cant figure out why.
Any ideas?
But I am very very confused!
'This code works!
Code:
Dim Done, counter
Done=False
While Not Done
Wait (2)
If Browser("name:=Delta - Book a flight").Page("title:=Delta - Book a flight").WebEdit("name:=departureCity\[0\]", "html id:=departureCity\[0\]").GetRoProperty("x") = 0 AND Browser("name:=Delta - Book a flight").Page("title:=Delta - Book a flight").WebEdit("name:=departureCity\[0\]", "html id:=departureCity\[0\]").GetRoProperty("y") = 0 Then
'Msgbox "obj not visible"
Else
'Msgbox "obj visible"
Done=True
End If
counter=counter+1
If counter=30 Then
Done=True
End If
Wend
'This code did not work for me AND I WANT TO USE THIS ONE! Please help
Code:
Do While Browser("name:=Delta - Book a flight").Page("title:=Delta - Book a flight").WebEdit("name:=departureCity\[0\]", "html id:=departureCity\[0\]").Exist(0)
Wait(2)
Loop
'This code did not work for me
Code:
Browser("name:=Delta - Book a flight").Page("title:=Delta - Book a flight").WebEdit("name:=departureCity\[0\]", "html id:=departureCity\[0\]").WaitProperty "visible", True, 59000
I want to use the middle code. (See my comment) I cant figure out why.
Any ideas?