How to use the gecko executable with Selenium

前端 未结 10 1448
滥情空心
滥情空心 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:58

    I try to make it simple. You have two options while using Selenium 3+:

    • Either upgrade your Firefox to 47.0.1 or higher and use the default geckodriver of Selenium3.

    • Or disable using of geckodriver by specifying marionette to false and use the legacy Firefox driver. a simple command to run selenium is: java -Dwebdriver.firefox.marionette=false -jar selenium-server-standalone-3.0.1.jar. You can also disable using geckodriver from other commands that are mentioned in other answers.

提交回复
热议问题