In QTP
, we can use below code:
if obj1.exist(5)
obj1.click;
else
obj2.click
We can control the wait time and if one UI
exists, we can do some operation.
how to work out the same situation in Monkey Talk
with JS
?
and can I get the orientation of the IOS
device with JS
?