2016-07-15 49 views
-1

代碼進行通信:錯誤:異常在線程 「主」 org.openqa.selenium.remote.UnreachableBrowserException:錯誤與遠程瀏覽器

import java.util.concurrent.TimeUnit;  
import org.openqa.selenium.WebDriver; 
import org.openqa.selenium.firefox.FirefoxDriver; 

public class webdriver { 
public static void main(String[] args) { 
    // TODO Auto-generated method stub 
WebDriver driver = new FirefoxDriver(); 
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); 

driver.navigate().to("http://www.calculator.net"); 
    } 
} 

火狐:47.0 硒的webdriver:2.53.1

請指導如何繼續。

+0

無法打開,因爲在螺紋下方錯誤異常的網站「主」 org.openqa.selenium.remote.UnreachableBrowserException:錯誤與通信遠程瀏覽器。它可能已經死亡。 構建信息:版本:'2.53.1',修訂:'a36b8b1',時間:'2016-06-30 17:37:03' 系統信息:host:'我',ip:'10 .0.12.150', os.name:'Windows 8.1',os.arch:'amd64',os.version:'6.3',java.version:'1.8.0_91' 驅動程序信息:driver.version:RemoteWebDriver –

+0

您是否試過降級FF到46? – kotoj

回答

0

希望下面的點幫你。:

  1. 瀏覽器實例未正確關閉。確保關閉瀏覽器會話。
  2. Firefox瀏覽器和Webdriver版本不兼容。
  3. 您正在用完端口。嘗試在Microsoft知識庫文章https://support.microsoft.com/en-us/kb/196271增加限制按照該決議,並重新啓動計算機
相關問題