( ( JavascriptExecutor ) _driver )
.executeScript( "window.onbeforeunload = function(e){};" );
solved the issue for me
More Related Contents:
- What Is Selenium And What Is WebDriver?
- What is the difference between WebDriver and WebElement in Selenium?
- NoSuchElementException, Selenium unable to locate element
- How does chrome driver interact with Chrome browser?
- Can’t open browser with Selenium after Firefox update
- How to inspect element for Selenium v3.6 as FireBug is not an option any more for FF 56?
- Page load strategy for Chrome driver (Updated till Selenium v3.12.0)
- Unable to find a matching set of capabilities with selenium 3.4.3, firefox 54.0 and gecko driver 0.17
- How to click on across browsers using Selenium Webdriver?
- Clarification of the cause of mixing Implicit and Explicit waits in Selenium doc
- What is benefit of using ChromeDriver over WebDriver if we are using only Chrome Browser in our Selenium Automation Script
- Getting text from a node
- Selenium and non-headless browser keeps asking for Captcha
- org.openqa.selenium.ElementNotInteractableException: Element could not be scrolled into view when trying to click a button
- Headless browser detection
- What is the internal working difference between Implicit Wait and Explicit Wait
- ERROR:ssl_client_socket_openssl.cc(1158)] handshake failed with ChromeDriver Chrome browser and Selenium
- Selenium WebDriver.get(url) does not open the URL
- What is the difference between a CSS selector and XPath? And which is better with respect to performance for cross-browser testing?
- What is the difference between a CSS and XPath selector? And which is better with respect to performance for cross-browser testing?
- I need to find an element in Selenium by CSS
- Selenium Webdriver – click on hidden elements
- Get PID of Browser launched by selenium
- Is there a Selenium WebDriver available for the Microsoft Edge browser?
- Make sure that browser opened by webdriver is always in focus
- selenium implicitly wait doesn’t work
- How does Selenium WebDriver’s isDisplayed() method work
- what’s the relationship between Selenium RC and WebDriver?
- isElementPresent is very slow in case if element does not exist.
- How to get attribute value inside a div in webdriver