首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >OperaDriver无法启动

OperaDriver无法启动
EN

Stack Overflow用户
提问于 2016-11-04 18:00:27
回答 1查看 688关注 0票数 1

上周有一个Opera浏览器的更新。从那时起,它就停止工作了。它打开浏览器并在URL中显示'data:,‘并抛出webdriver异常。Opera 41与selenium 2.53.1兼容吗?

抛出的异常是:

代码语言:javascript
复制
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)

浏览器的初始化是直接的。

代码语言:javascript
复制
driver = new OperaDriver(path of the driver);

我也尝试过selenium 3,但没有成功。得到了同样的异常。

EN

回答 1

Stack Overflow用户

发布于 2016-12-05 21:15:53

在将Opera降级到版本40之后,我可以像以前一样运行我的测试套件。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40419781

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档