Close a PopUp/Window

Hello Everyone,

Im looking some help to close a window or popup, I already tried with the below line but doesn’t work:

return $browser.close();

I need to close one window because after to close it then the main page refreshes and load new information.

Thanks and have a great day!
Cesar A. Solorio

Hi @cesar.solorio, you could try any one of these:

1 Like

Those are about how to handle windows and alerts, Im just looking about how to close it, I have not issues to handle between windows or popups.

Thanks for your time

Once you know how to access the pop up correctly, which those posts will give you various methods depending on the “pop up” design, then you can provide the correct action to close it.

1 Like