Selenium

Z Varhoo
(Rozdíly mezi verzemi)
Přejít na: navigace, hledání
(Založena nová stránka: This tutorial is only for python. = PhantomJS = At first install selenium for python yum install python-selenium or pip install selenium PhantomJS is needed compi…)
 
(Není zobrazena 1 mezilehlá verze od 1 uživatele.)
Řádka 14: Řádka 14:
 
PhantomJS is needed compile from github and you need package requirements
 
PhantomJS is needed compile from github and you need package requirements
   
sudo yum install gcc-c++ libicu-devel openssl-devel
+
sudo yum install gcc-c++ libicu-devel openssl-devel freetype-devel fontconfig-devel
   
 
Now we can compile phantomJS
 
Now we can compile phantomJS
Řá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, 17: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