Skip to content

Verifying WebDriver

Verifying that web drivers are installed

You can do this by checking inside a Python command prompt.

Verifying ChromeDriver

python
>>> from selenium import webdriver
>>> driver = webdriver.Chrome()
>>> driver.get("https://www.google.com/chrome")
>>> driver.quit()
>>> exit()

Verifying Geckodriver (Firefox WebDriver)

python
>>> from selenium import webdriver
>>> driver = webdriver.Firefox()
>>> driver.get("https://www.mozilla.org/firefox")
>>> driver.quit()
>>> exit()

Verifying WebDriver for Safari

python
>>> from selenium import webdriver
>>> driver = webdriver.Safari()
>>> driver.get("https://www.apple.com/safari")
>>> driver.quit()
>>> exit()