上周有一个Opera浏览器的更新。从那时起,它就停止工作了。它打开浏览器并在URL中显示'data:,‘并抛出webdriver异常。Opera 41与selenium 2.53.1兼容吗?
抛出的异常是:
Result Message: Initialization method SDTestAutomation.HomePage_Tests.Init threw exception. OpenQA.Selenium.WebDriverException: OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://localhost:64865/session timed out after 60 seconds. ---> System.Net.WebException: The request was aborted: The operation has timed out..
Result StackTrace:
at System.Net.HttpWebRequest.GetResponse()
at OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request)
--- End of inner exception stack trace ---
at OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request)
at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
at OpenQA.Selenium.Opera.OperaDriver..ctor(String operaDriverDirectory, OperaOptions options)
at OpenQA.Selenium.Opera.OperaDriver..ctor(String operaDriverDirectory)
at SmartDebitTestFramework.Drivers.Initialize(String browser)浏览器的初始化是直接的。
driver = new OperaDriver(path of the driver);我也尝试过selenium 3,但没有成功。得到了同样的异常。
发布于 2016-12-05 21:15:53
在将Opera降级到版本40之后,我可以像以前一样运行我的测试套件。
https://stackoverflow.com/questions/40419781
复制相似问题