Skip to content

Instantly share code, notes, and snippets.

@jachin
Created April 3, 2012 22:06
Show Gist options
  • Save jachin/2295828 to your computer and use it in GitHub Desktop.
Save jachin/2295828 to your computer and use it in GitHub Desktop.
Selenium and Chrome in Python

Selenium and Chrome in Python

http://selenium-python.readthedocs.org/en/latest/getting-started.html

http://peter.sh/experiments/chromium-command-line-switches/

http://selenium.googlecode.com/svn/trunk/docs/api/py/api.html#webdriver-chrome

http://code.google.com/p/selenium/wiki/ChromeDriver

Creating a Standard Chrome Driver

Creates a web driver that does not require the Selenium server running:

driver = webdriver.Chrome()

Creating a Chrome Driver to Run on a Locally Running Selenium Server

driver = webdriver.Remote(
    command_executor='http://127.0.0.1:4444/wd/hub',
    desired_capabilities=DesiredCapabilities.CHROME
 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment