Page 1 of 1

difference between visible() and valid()

Posted: Wed Aug 02, 2017 7:25 am
by mapa
Hello guys,

can you please tell me where the difference between the visible- and valid-method is ?
In my opinion is an object valid when it is visible and also the other way round.

Re: difference between visible() and valid()

Posted: Wed Aug 02, 2017 1:51 pm
by krstcs
Visible ONLY means that the element is in the viewable area of the screen/window.

Valid means that Ranorex believes the element is still valid (the element hasn't moved, disappeared, etc.)

They are not strictly related. There is some overlap in their return value in certain situations, but there is no rule that requires one's value to depend on the other's.