xxxxxxxxxx
from selenium import webdriver
browser = webdriver.Firefox(executable_path='C:\ProgramData\Anaconda3\geckodriver.exe')
url = "https://github.com"
browser.close()
xxxxxxxxxx
from selenium import webdriver
driver = webdriver.Firefox(executable_path=r'your\path\geckodriver.exe')
driver.get('http://inventwithpython.com')
xxxxxxxxxx
from selenium import webdriver
# create webdriver object
driver = webdriver.Firefox(executable_path=r"C:\Users\Admin\anaconda3\geckodriver\geckodriver.exe")
# get google.co.in
# C:\Users\Admin\anaconda3\geckodriver\geckodriver.exe is the path to my geckodriver, without the gecko driver it will not work
driver.get("https://google.co.in")