March 2015
Intermediate to advanced
194 pages
3h 59m
English
A pop-up is a browser window that opens randomly on surfing the Internet through the web browser. Web applications generate three different types of pop-ups, namely:
JavaScript pop-ups are generally in the form of alerts and advertisements, especially for marketing purposes. Selenium WebDriver provides an API to handle the JavaScript pop-ups. The following is an example of an alert:
Alert alert = driver.switchTo().alert();
Some of the helpful snippets using JavaScript alert functions are as ...
Read now
Unlock full access