How can I handle a promotional pop up using selenium /Java?

Hi, I am trying to  make an automation script for amazon .com. But when I run the script
the page appears then a promotional pop up appears it ask me whether I want to login or already a user? I got error .How to handle this.

iqbal2000 Default Asked on January 11, 2017 in Selenium WebDriver.

can you paste the screenshot?

on January 11, 2017.
Add Comment
1 Answer(s)

Add a waiting command that waits until the popup is shown and then add a click which will close the popup.

ollo Default Answered on January 12, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.