Created
March 2, 2012 22:47
-
-
Save alfredo/1962031 to your computer and use it in GitHub Desktop.
Running the remote driver with Selenium and python
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
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