cancel
Showing results for 
Search instead for 
Did you mean: 

If statement for VisibleOnScreen is failing when object is not on screen

SOLVED
Highlighted
Occasional Contributor

Re: If statement for VisibleOnScreen is failing when object is not on screen

The only issue with this is, I dont expect the dialog box to appear every time I run the test, in fact I would say it only appears maybe 1 in 20 runs. So writing code around triggering it to  appear and then waiting to make sure it exists before clicking the button wont really work. All I need is if  the diaglog box is visible then click the ok button, else  carry on as normal. Its like a pop up warning ,you just click ok and move on.

 

Edit: After looking into some simple name mapping I managed to get it to work using your earlier code. I will definently be speaking to the project manager about implementing name mapping as it could have saved me a lot of time if we had been using it from the begining. I appreciate your help very much.

New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors