Selenium

Z Varhoo
Přejít na: navigace, hledání

This tutorial is only for python.

PhantomJS

At first install selenium for python

yum install python-selenium

or

pip install selenium


PhantomJS is needed compile from github and you need package requirements

sudo yum install gcc-c++ libicu-devel openssl-devel freetype-devel fontconfig-devel

Now we can compile phantomJS

git clone git://github.com/ariya/phantomjs.git
./build.sh

Example using:

driver = webdriver.PhantomJS("./env/src/phantomjs/bin/phantomjs")
driver.get("http://wiki.varhoo.cz/")
Osobní nástroje