Hi Lorena, I think i have confused u...
What i tried to say is, it s better to use Exist method on top of GetROProperty to avoid runtime error. Because u use coordinates which i will not use. I feel there is a chance for 'object not found' error.
Exist -- it will just say if the object is present or not.
even if the object is present, any of the property might not be as u expected. so in that case, u need to use GetROProperty to verify the property values.
Say,
There is a textbox. Lets assume it's logical name is 'Text'
WebEdit("Text").Exist --> will say it is true (or false it is not thr)
But that box might be disabled.
U might want to check if it is editable or not..in that case u need to use GetRoProperty to check if it is editable or not.
Exist method can not be used.
Hope it helps...if not, let me know with ur qn..
What i tried to say is, it s better to use Exist method on top of GetROProperty to avoid runtime error. Because u use coordinates which i will not use. I feel there is a chance for 'object not found' error.
Exist -- it will just say if the object is present or not.
even if the object is present, any of the property might not be as u expected. so in that case, u need to use GetROProperty to verify the property values.
Say,
There is a textbox. Lets assume it's logical name is 'Text'
WebEdit("Text").Exist --> will say it is true (or false it is not thr)
But that box might be disabled.
U might want to check if it is editable or not..in that case u need to use GetRoProperty to check if it is editable or not.
Exist method can not be used.
Hope it helps...if not, let me know with ur qn..