Selenium

Z Varhoo
(Rozdíly mezi verzemi)
Přejít na: navigace, hledání
 
Řádka 20: Řádka 20:
 
git clone git://github.com/ariya/phantomjs.git
 
git clone git://github.com/ariya/phantomjs.git
 
./build.sh
 
./build.sh
  +
  +
Example using:
  +
  +
driver = webdriver.PhantomJS("./env/src/phantomjs/bin/phantomjs")
  +
driver.get("http://wiki.varhoo.cz/")

Aktuální verze z 25. 8. 2014, 18:24

This tutorial is only for python.

[editovat] 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