Quantcast
Channel: L.S.
Viewing all articles
Browse latest Browse all 31

How to make Selenium2 work for Mac OS X with Firefox Nightly and Python

$
0
0

This is one of the shortest articles ever, almost nothing to explain here.

First, install Selenium2 through easy_install

sudo easy_install selenium

Then, simply go to the /Applications directory and create a symbolic link, because selenium looks for the Firefox binary in a  specific path:

$ cd /Applications
$ sudo ln -s FirefoxNightly.app Firefox.app

 

Time to test:

$ python
>>> from selenium import webdriver
>>> ff = webdriver.Firefox()

 

You should now see a new Firefox instance.

That’s it.


Viewing all articles
Browse latest Browse all 31

Trending Articles