Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to do this .exist but it is always TRUE
#5
Not Solved
Hi,

.Exist method will return True even if the object is hidden. ie, object is still there but it is not visible.

So, just check if the object is visible or not.
Code:
If Browser().Page().WebEdit().GetRoProperty("x") = 0 AND Browser().Page().WebEdit().GetRoProperty("y") = 0 Then
          Msgbox "obj not visible"
Else
         Msgbox "obj visible"
End If

And you might have to wait till the obj is loaded fully in some cases.
Code:
Browser().Page().WebEdit().WaitProperty "visible", True, 10000
10000 --> time in milli seconds
It is same like Wait method but if the obj is visible in 3 seconds, it will exit from the statement. It will not wait for 10 seconds which is good[/php]
Reply


Messages In This Thread
RE: Trying to do this .exist but it is always TRUE - by vIns - 07-07-2012, 04:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Smile If Then Is Always True For Web Objects zunebuggy 1 933 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 3,132 04-24-2018, 02:12 PM
Last Post: Ankur
  Time Delay issue with Exist mv8167 11 24,785 06-19-2017, 02:56 PM
Last Post: grosorg
  Performance Issues Using '.Exist' AndyBSG 2 3,482 12-12-2014, 03:24 PM
Last Post: AndyBSG
  datatable column exist diya 3 12,532 12-11-2012, 11:24 AM
Last Post: elango87

Forum Jump:


Users browsing this thread: 2 Guest(s)