【问题标题】:OperaDriver fails to startOperaDriver 无法启动
【发布时间】:2016-11-04 10:00:26
【问题描述】:

上周对 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,但没有运气。遇到同样的异常。

【问题讨论】:

  • 没有办法自动化最新的opera驱动。 :)
  • @QualityProducts 为什么会这样?您是否有任何消息来源可以证实这一点。降级是唯一的选择吗?
  • @QualityProducts 我们可以自动停止 Opera 升级吗?我在设置中没有找到自动停止更新的选项。谢谢。
  • @QualityProducts 谢谢。您在哪个版本上运行测试。我可以在以前的版本 V40 上成功运行。需要试试现在是否还能用。
  • V41 不工作。我在 41 岁,所以你的建议是降级,但我无法阻止它升级。我们有网络支持,一个人尝试了 2 小时,但他无法停止。他降级的版本是 Opera 30,旧了 11 个版本。我问他要38或39,他说我必须试试。希望他能找到解决办法。删除 update.exe 没有帮助。

标签: selenium selenium-webdriver opera operadriver


【解决方案1】:

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

【讨论】:

  • 问:你是怎么降级到40版的(我也遇到了同样的问题)
  • @Stormcloud 我得到了网络人员的帮助。您需要从opera installer文件夹中删除程序文件下的autoupdate.exe文件,然后下载您需要的版本。
  • 我会先给出的。感谢您的帮助
猜你喜欢
  • 1970-01-01
  • 2012-04-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-02-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多