Skip to content

Instantly share code, notes, and snippets.

@tonetheman
Created September 11, 2014 16:27
Show Gist options
  • Select an option

  • Save tonetheman/5b2a545c788b110f4570 to your computer and use it in GitHub Desktop.

Select an option

Save tonetheman/5b2a545c788b110f4570 to your computer and use it in GitHub Desktop.
chrome driver example getting rid of ugly yellow bar at the top!
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
opts = Options()
opts.add_argument("--test-type")
CHROME_DRIVER_PATH="c:\\projects\\2014\\sep\\chromedriver\\chromedriver.exe"
driver = webdriver.Chrome(executable_path=CHROME_DRIVER_PATH,chrome_options=opts)
driver.get("http://yahoo.com")
driver.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment