Last active
September 29, 2018 14:53
-
-
Save germainlefebvre4/8737e1eaa3f39fa0b33793682b8f327e to your computer and use it in GitHub Desktop.
Selenium Python - First-Step : Very simple example
This file contains 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
#!/usr/bin/python2 | |
from selenium import webdriver | |
chrome_options = webdriver.ChromeOptions() | |
chrome_options.add_argument('--headless') | |
chrome_options.add_argument('--no-sandbox') | |
driver = webdriver.Chrome('chromedriver', chrome_options=chrome_options, service_args=['--verbose', '--log-path=/tmp/chromedriver.log']) | |
driver.get('https://python.org') | |
print driver.title |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment