Handling for hidden element (pop-up)

Hello all,

I’m having issues on how to handle a hidden pop-up. I have to interact with a pop-up when it appears on screen, however, Robot assumes it’s already interacting with the pop-up even when it’s still not loaded on screen.

I tried validating selector when the pop-up is not open and it still says in the studio that the element is valid, I think this is why the Robot thinks it has interacted with the pop-up even thought it’s still not loaded on screen.

I’m getting error as the robot tried to do the next steps, and the pop-up is blocking the main page robot needs to interact with.

Are there ways on how I can make robot wait for the pop-up to appear on screen?

Thanks!

Hi @jplisetsky

Use element exists before that use delay to check whether the pop up exist

Thanks
Ashwin.S

Hello, thanks for the suggestion!

The element exists returns true even if the pop-up is not yet displayed on screen. I used the Get Attribute “Visible” to handle this.

Hi @jplisetsky

Use aastate instead of visible property

Thanks
Ashwin.S