Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to do this .exist but it is always TRUE
#6
Not Solved
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!

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?
Reply


Messages In This Thread
RE: Trying to do this .exist but it is always TRUE - by chong67 - 07-09-2012, 11:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Smile If Then Is Always True For Web Objects zunebuggy 1 791 04-17-2020, 04:30 AM
Last Post: zunebuggy
  Exist and Visible Are True When Objects Aren't There - Is there A Better Way? zunebuggy 3 2,756 04-24-2018, 02:12 PM
Last Post: Ankur
  Time Delay issue with Exist mv8167 11 24,034 06-19-2017, 02:56 PM
Last Post: grosorg
  Performance Issues Using '.Exist' AndyBSG 2 3,199 12-12-2014, 03:24 PM
Last Post: AndyBSG
  datatable column exist diya 3 12,207 12-11-2012, 11:24 AM
Last Post: elango87

Forum Jump:


Users browsing this thread: 1 Guest(s)