error communicating with the remote browser. it may have died.
This usually happens when you are trying to close the same webdriver instance multiple times. Do you know what happens in super.teardown()
?When I checked the selenium4j source, it extends junit Testcase. Your super.tearDown
will be calling jUnitTeardown and would be killing the browser instance before closeSeleniumSession()
is called.
You can put that closeSeleniumSession()
before super.tearDown()
.
if(driver != null) {
driver.close();
driver.quit();
}
Similar Posts:
- Error reporting in Firefox using selenium in Python
- Selenium Error: Message: unknown error: cannot find Chrome binary
- Under Ubuntu system, selenium opens the Firefox browser and prompts’ unable to find a matching set of capabilities. And message: connect
- Prompt python.exe when using the command line to run the use case: error while finding module specification for ‘testcase_1.Test’…..
- Message: ‘geckodriver’ executable needs to be in PATH. [Solved]
- Mac environment and python + selenium environment are built to solve the error reporting problem of chromedriver
- [Solved] Error in Python selenium + phantom JS alert() pop-up window
- Python: __ new__ Method and the processing of typeerror: object() takes no parameters
- selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to…
- [Solved] IllegalArgumentException: object is not an instance of declaring class