Failed to connect to binary FirefoxBinary with Selenium in Maven

前端 未结 11 2638
终归单人心
终归单人心 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条回答
  •  -上瘾入骨i
    2020-12-05 02:50

    Cannot find the firefoxbinary path. Please set the firefox path in advance of using firefox driver.

    System.setProperty("webdriver.firefox.bin", "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe");
    

提交回复
热议问题