2017-02-06 5 views
1

org.openqa.selenium.firefox.NotConnectedException 3.0.1。org.openqa.selenium.firefox.NotConnectedExceptionは、Firefoxのバージョンセレンのjava 3.0.1 Firefoxバージョン51.0.1と51.0.1

私はGeckoドライバを使用しようとしています。

はここ

public class Gecko { 
    String driverPath = "/home/hema/Downloads/Softwares"; 
    WebDriver driver; 

    @org.junit.Test 
    public void Test() { 
    System.setProperty("webdriver.firefox.marionette", driverPath + "/geckodriver.exe"); 
    DesiredCapabilities capabilities = DesiredCapabilities.firefox(); 
    capabilities.setCapability("marionette", true); 
    driver = new FirefoxDriver(capabilities); 
    driver.get("http://awsstagewebdriver.doctorinsta.com"); 
    } 
    @After 
    public void tearDown(){ 
    driver.close(); 
    } 
} 

Dependices

<dependencies> 
    <dependency> 
     <groupId>org.seleniumhq.selenium</groupId> 
     <artifactId>selenium-server</artifactId> 
     <version>3.0.1</version> 
    </dependency> 
    <dependency> 
     <groupId>org.seleniumhq.selenium</groupId> 
     <artifactId>selenium-java</artifactId> 
     <version>3.0.1</version> 
    </dependency> 
</dependencies> 
+0

あなたが使っているgeckodriverのバージョンは? – mosaad

答えて

-1

46.0.1にFirefoxバージョン51.0.1をダウングレードしてください私のコードです。

関連する問題