1

上周对 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,但没有运气。得到了同样的例外。

4

1 回答 1

0

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

于 2016-12-05T13:15:52.723 回答