Created
September 11, 2014 16:27
-
-
Save tonetheman/5b2a545c788b110f4570 to your computer and use it in GitHub Desktop.
chrome driver example getting rid of ugly yellow bar at the top!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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