Handling popup using selenium

+1 vote
I have one pop up which is displayed on middle of the page in 20 seconds after visiting the website and repeatedly displayed within 10 seconds if the user does not do any activity.  Because of this pop-up, my test always fails because it does not execute the next line. I want that whenever this pop-up comes up during my test flow it should get handled. this pop-up window comes on every page, so If I miss to cancel or accept it on the main page it will appear to the next redirected page after a few seconds. So now I cant handle this situation.
Jan 10, 2020 in Selenium by Varsha
• 130 points

edited Jan 13, 2020 by Varsha 801 views

1 answer to this question.

0 votes

If you are asking about authentication handling in pop-ups, do have a look at https://www.edureka.co/community/47896/different-handling-authentication-popup-window-selenium

answered Mar 13, 2020 by Sirajul
• 59,230 points
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP