Selenium Query

Invaild alert box always appears while I run my web driver script ,but while doing the same task of sign up manually I can’t find that issue.Due to this invalid alert box which gets triggered ,my script gets break down and I can’t continue.

Tijo Default Asked on October 15, 2015 in Selenium WebDriver.

Can you show your script?

on October 15, 2015.
Add Comment
3 Answer(s)

Make sure that you use same browsers and proxy while run tests and do it manualy
Also you can skip modal dialog
//your code
catch(UnhandledAlertException e){
Alert alt=driver.switchTo().alert();

victor Reviewer Answered on October 16, 2015.
Add Comment


Even after inserting try catch block in script,the issue exist s.After failing with web driver script,i shifted to IDE in which a text field was missing even after recording the full sign up page. Can’t make the script to complete it’s execution due to invalid alert box being populated.

Tijo Default Answered on October 22, 2015.
Add Comment

Are you sure that it is modal window

It may be just pop up

Show your error

victor Reviewer Answered on October 22, 2015.
Add Comment

Your Answer

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