Failed to connect to binary FirefoxBinary with Selenium in Maven

前端 未结 11 2670
终归单人心
终归单人心 2020-12-05 02:32

I am running some Selenium-Tests. When I start them directly from Eclipse everything works fine. But when I Start them through Maven there the following Exception occurs:

11条回答
  •  醉话见心
    2020-12-05 03:03

    my recommendation is 
    
        ===> switch to firefox version 50.0 [latest One] , 
    
        ===> download the gecko driver from [.](https://github.com/mozilla/geckodriver/releases)  and 
    
        ===> Selenium version 3.0.1
         
                    org.seleniumhq.selenium
                    selenium-java
                    3.0.1
         
    
        ==> On your Code 
    private WebDriver driver;
    System.setProperty("webdriver.gecko.driver", "PATH to GECKO DRIVER");
            driver = new FirefoxDriver();
    
        and yes you see the below output in your console :
    
    
        Dec 17, 2016 6:40:45 PM org.openqa.selenium.remote.ProtocolHandshake createSession
        INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end
        14819XXXXXXX5   mozprofile::profile INFO    Using profile path C:\Users\User\AppData\Local\XXXXX\rust_XXXprofile.OXXXXXXXXXXX7S
        148XXXXXXXXX0   geckodriver::marionette INFO    Starting browser C:\Program Files\Mozilla Firefox\firefox.exe
        148XXXXXXXXX1   geckodriver::marionette INFO    Connecting to Marionette on localhost:XXXXXXX
        148198XXXX077   Marionette  INFO    Listening on port 53532
        Dec 17, 2016 6:40:55 PM org.openqa.selenium.remote.ProtocolHandshake createSession
        INFO: Detected dialect: W3C
        [Child 4104] ###!!! ABORT: Aborting on channel error.: file c:/builds/moz2_slave/m-rel-w32-00000000000000000000/build/src/ipc/glue/MessageChannel.cpp, line XXXX
        Dec 17, 2016 6:41:13 PM org.openqa.selenium.os.UnixProcess destroy
    

提交回复
热议问题