Skip to content

Instantly share code, notes, and snippets.

@alfredo
Created March 2, 2012 22:47
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alfredo/1962031 to your computer and use it in GitHub Desktop.
Save alfredo/1962031 to your computer and use it in GitHub Desktop.
Running the remote driver with Selenium and python
1. Download the latest selenium standalone server from:
http://code.google.com/p/selenium/downloads/list
2. Install the python selenium webdriver:
$ pip install selenium
3. Run the selenium server:
$ java -jar selenium-server-standalone-2.x.x.jar
4 Now you can invoke the web driver through:
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
driver = webdriver.Remote(command_executor='http://33.33.33.1:4444/wd/hub', desired_capabilities=DesiredCapabilities.FIREFOX)
More about this:
http://readthedocs.org/docs/selenium-python/en/latest/getting-started.html#using-selenium-with-remote-webdriver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment