NotADirectoryError: [Errno 20] Not a directory: '/home/ghost/automation/pwd/geckodriver' with GeckoDrriver Firefox and Selenium using Python3

前端 未结 1 985
情歌与酒
情歌与酒 2020-12-02 02:58

im using pycharm and my pythn

version 3.6.7 pip 9.0.1

and selenium version selenium-3.141.0 urllib3-1.24.1

i install selenium using this commands

相关标签:
1条回答
  • 2020-12-02 03:18

    While working with GeckoDriver, Firefox and Selenium, you need to use the Key executable_path and the Value set to the absolute path of the GeckoDriver within single quotes i.e. '...' with forward slash i.e. / as path separator as follows:

    driver = webdriver.Firefox(executable_path='/home/ghost/automation/pwd/geckodriver')
    
    0 讨论(0)
提交回复
热议问题