Selenium
Z Varhoo
(Rozdíly mezi verzemi)
Řá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/")