Setting path to firefox binary on windows with selenium webdriver

后端 未结 3 398
自闭症患者
自闭症患者 2020-11-27 19:59

I am trying to build a utility function to output beautiful soup code to a browser I have the following code:

def bs4_to_browser(data):

    from selenium i         


        
3条回答
  •  悲哀的现实
    2020-11-27 20:53

    If you for example downloaded the chrome driver already, you can just specify the path to it like that:

    from selenium import webdriver
    driver = webdriver.Chrome(r'D:\\chromedriver.exe')
    

提交回复
热议问题