3 ms·
Let's install couple things pip install robotframework-selenium2library npm install phantomjs Run phantomjs and tell it to listen port for Webdriver t
by hpaavola 13y ago
Let's install couple things
pip install robotframework-selenium2library
npm install phantomjs
Run phantomjs and tell it to listen port for Webdriver traffic
phantomjs --webdriver=4444
This goes to foo.txt
*** Settings ***
Library Selenium2Library
*** Test Cases ***
Scrape Twitter
[Setup] Open Browser https://twitter.com/HackerNews firefox main browser http://localhost:4444
Capture Page Screenshot
Wait Until Keyword Succeeds 30 3 Find Waldo Demand for HTML5 Skills On the Rise, Report Says http://bit.ly/90Vcnr
Capture Page Screenshot
[Teardown] Close All Browsers
*** Keywords ***
Find Waldo
[Arguments] ${waldo}
Click Element css=.stream-footer
Wait Until Page Contains ${waldo}
And finally execute
pybot foo.txt
Hope I didn't mess up with the formatting.