org.openqa.selenium.WebDriverException: Session has no driver: f05f2e41-1216-4a02-8785-f1a96fc58b3a
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_11'
Driver info: driver.version: remote
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:94)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:327)
at org.openqa.selenium.firefox.FirefoxDriver.execute(FirefoxDriver.java:191)
at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:137)
at org.openqa.selenium.internal.seleniumemulation.Open.handleSeleneseCommand(Open.java:36)
at org.openqa.selenium.internal.seleniumemulation.Open.handleSeleneseCommand(Open.java:22)
at org.openqa.selenium.internal.seleniumemulation.SeleneseCommand.apply(SeleneseCommand.java:30)
at org.openqa.selenium.WebDriverCommandProcessor$1.call(WebDriverCommandProcessor.java:271)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
... Removed 4 stack frames作者: gaha 时间: 2010-12-30 17:53
mark等待作者: robin.von 时间: 2010-12-31 10:18
如果用Selenium RC的话,close方法是模拟用户点击了浏览器的关闭按钮,
open方法是在当前打开的浏览器实例中,打开指令的URL,本身没有新建浏览器实例的功能。
调用了CLOSE以后,浏览器已经关闭了,再打开URL当然会报错。