2016-11-04 212 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