Selenium install Marionette webdriver

后端 未结 3 1409
温柔的废话
温柔的废话 2021-01-17 13:03

I have this issue with firefox version 47 https://github.com/seleniumhq/selenium/issues/2110

So, i have tried to add Marionette web driver to fix it: https://develop

3条回答
  •  无人及你
    2021-01-17 13:18

    In addition to the other two answers, you probably don't want to change the PATH system wide since you need it only when running the tests. A way to have the right PATH only when you need it is to set it in code:

    os.environ["PATH"] += os.pathsep + 'path/to/dir/containing/geckodriver/'
    

    A simpler workaround would be to simple move the geckodriver binary to the directory you already have in your path:

    mv geckodriver /usr/local/bin
    

提交回复
热议问题