JS Alert

37 views
Skip to first unread message

Prashant Chavan

unread,
May 8, 2015, 8:17:42 AM5/8/15
to phan...@googlegroups.com
Hi,

I am using PhantomJSDriver for test-automation.
Can anyone please help me to handle Java Script alerts?

I am using 
Selenium WebDriver selenium-java-2.44.0
phantomjsdriver 1.0.4

Regards,
Prashant

Sean McNamara

unread,
May 8, 2015, 10:56:04 AM5/8/15
to phan...@googlegroups.com
By googling for "alerts selenium" ( http://lmgtfy.com/?q=alerts+selenium ) I found that all of the top three search results provided tangible, useful and correct code examples of how to handle JS alerts using Selenium WebDriver in Java. However, the third link, below, is particularly helpful and informative:

http://www.softwaretestinghelp.com/handle-alerts-popups-selenium-webdriver-selenium-tutorial-16/

After reading and understanding this article and trying to employ a similar technique in your own code, do you have any *specific* questions related to a problem you are having?

In order to find information on your own, and ask better questions when you can't find the information, it is recommended that you perform a small amount of research (e.g. Google) about your problem before you ask a question on a mailing list.

For your reference, this is a fantastic article about how to ask questions in a way that saves both you and others a great deal of time: http://www.catb.org/esr/faqs/smart-questions.html

Hope that helps,

Sean



--
You received this message because you are subscribed to the Google Groups "phantomjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phantomjs+...@googlegroups.com.
Visit this group at http://groups.google.com/group/phantomjs.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages