OperaDriver无法启动 [英] OperaDriver fails to start

查看:109
本文介绍了OperaDriver无法启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上周Opera浏览器进行了更新.从那以后,它停止工作了.它打开浏览器并在URL中显示"data:",并引发webdriver异常. Opera 41与硒2.53.1兼容吗?

There was an update last week for Opera browser. Since then it stopped working. It opens the browser and shows 'data:,' in the URL and throws webdriver exception. Is Opera 41 compatible with 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);

也尝试过硒3,但没有运气.有同样的例外.

Tried selenium 3 as well but no luck. Got the same exception.

推荐答案

将Opera降级到40版后,我可以像以前一样运行测试套件.

After downgrading Opera to version 40, I'm able to run my test suite as before.

这篇关于OperaDriver无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆