Created
February 26, 2010 15:39
-
-
Save hugs/315818 to your computer and use it in GitHub Desktop.
Selenium 2 Build - Ubuntu 9.10 - Python 2.6
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
# Get recent updates | |
$ sudo apt-get update upgrade | |
$ sudo apt-get upgrade | |
# Install some decent tools :-) | |
$ sudo apt-get install vim ack-grep | |
# Install pre-reqs | |
$ sudo apt-get install sun-java6-jdk ruby rake subversion python-pip python2.6-dev | |
$ sudo pip install distribute py | |
# Create project space | |
mkdir Projects | |
$ cd Projects/ | |
$ svn checkout https://selenium.googlecode.com/svn/trunk/ selenium --username <name> | |
# It's big, fyi | |
$ du -hs selenium/ | |
313M selenium/ | |
# Can we build it? Yes we can! | |
$ cd selenium | |
$ rake | |
# Can we build the python bindings? | |
$ rake test_firefox_py | |
# Build an egg | |
$ build/python/bin/python setup.py bdist_egg | |
# Install the egg: | |
$ sudo easy_install dist/selenium-2.0_dev-py2.6.egg | |
# Start using it! | |
$ python | |
>>> import selenium | |
>>> from selenium.firefox.webdriver import WebDriver | |
>>> browser = WebDriver() | |
>>> browser.get('http://hello-internet.org') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment