您的位置:首页 > 其它

error communicating with the remote browser. it may have died.

2016-03-10 16:05 453 查看
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();
            }
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: