Unable to spy (capture) confirmation alert object OK button

Hi,

I am not able to capture alert as it is not having red border when rolling mouse over to it.
Kindly let me know how to handle this situation since I can’t confirm by pressing ok.

Zahir Babur said:

Hi,

I am not able to capture alert as it is not having red border when rolling mouse over to it.
Kindly let me know how to handle this situation since I can’t confirm by pressing ok.

I am able to move to alert window with switchtowindow() method but now unable to press OK button.

Did you try WebUI.acceptAlert()?

Mate Mrse said:

Did you try WebUI.acceptAlert()?

It worked, thanks! :slight_smile: