Skip to content

Instantly share code, notes, and snippets.

@daviwesley
Created September 24, 2019 00:02
Show Gist options
  • Save daviwesley/c593ff6ac69d65e44bf35df77d99401a to your computer and use it in GitHub Desktop.
Save daviwesley/c593ff6ac69d65e44bf35df77d99401a to your computer and use it in GitHub Desktop.
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import os
options = Options()
options.add_argument("--window-size=600x400")
driver = os.getcwd() + "/geckodriver"
driver = webdriver.Firefox(executable_path=driver)
# (chrome_options=chrome_options, executable_path=chrome_driver)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment