How to use the gecko executable with Selenium

前端 未结 10 1465
滥情空心
滥情空心 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 08:56

    Recently Selenium has launched Selenium 3 and if you are trying to use Firefox latest version then you have to use GeckoDriver:

    System.setProperty("webdriver.gecko.driver","G:\\Selenium\\Firefox driver\\geckodriver.exe");
    WebDriver driver = new FirefoxDriver();
    

    You can check full documentation from here

提交回复
热议问题