2016-11-04 115 views
1

Opera浏览器上周发生了更新。从此它停止工作。它打开浏览器并在URL中显示'data :,'并引发webdriver异常。 Opera 41是否与硒2.53.1兼容?OperaDriver无法启动

抛出异常是:

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,但没有运气。有同样的例外。

+0

没有办法自动化最新的Opera驱动程序。 :) –

+0

@QualityProducts这是为什么?你有什么资料来证实这一点。降级是唯一的选择吗? – Sudeepthi

+0

@QualityProducts我们能否自动停止Opera升级。我没有在设置中找到自动停止更新的选项。谢谢。 – Sudeepthi

回答

0

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

+0

问:你是如何降级到版本40(我有同样的问题) – Stormcloud

+0

@Stormcloud我得到了网络人员的帮助,你需要删除autoupdate.exe文件从opera安装程序文件夹下的程序文件,然后下载你需要的版本。 – Sudeepthi

+0

我会给那个前面的。谢谢你的帮助 – Stormcloud