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.
And you might have to wait till the obj is loaded fully in some cases.
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]
.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
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]