Member-only story

how to install geckodriver on a windows system

胡家維 Hu Kenneth
1 min readJun 2, 2020

--

Answer: You can put it anywhere.

1. Download following driver

Chrome:https://sites.google.com/a/chromium.org/chromedriver/downloadsEdge:https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/Firefox:https://github.com/mozilla/geckodriver/releasesSafari:https://webkit.org/blog/6900/webdriver-support-in-safari-10/

2. Unzip driver and put it into a folder.

3. Load your driver in your code.

I want to open Chrome browser so I set the path up in my code.

from selenium import webdriver
url="C:\\Programs\\Python36\\BrowersDriver\\chromedriver.exe"
driver=webdriver.Chrome(url)
driver.get("http://www.yahoo.com")
driver.close()
driver.quit()

--

--

胡家維 Hu Kenneth
胡家維 Hu Kenneth

Written by 胡家維 Hu Kenneth

撰寫任何事情,O型水瓶混魔羯,咖啡愛好者,Full stack/blockchain Web3 developer,Founder of Blockchain&Dapps meetup ,Udemy teacher。 My Linktree: https://linktr.ee/kennethhutw

No responses yet