How to use the gecko executable with Selenium

前端 未结 10 1472
滥情空心
滥情空心 2020-11-28 08:20

I\'m using Firefox 47.0 with Selenium 2.53. Recently they have been a bug between Selenium and Firefox which make code not working. One of the solution is to use the Marion

10条回答
  •  忘掉有多难
    2020-11-28 09:15

    This can be due to system cannot find firefox installed location on path.

    Try following code, which should work.

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

提交回复
热议问题