webtesting with robotframework seleniumlibrary and geckodriver
webtesting with python 3 robotframework seleniumlibrary and geckodriver
install robotframework
You can run pip3 as root (for best results) or as your user
NOTE: Selenium2Library has been renamed to SeleniumLibrary since version 3.0. Nowadays Selenium2Library is just a thin wrapper to SeleniumLibrary that eases with transitioning to the new project. See SeleniumLibrary and Selenium2Library project pages for more information.
install gecko driver
# wget https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-v0.19.1-linux64.tar.gz
# tar zxvf geckodriver-v0.19.1-linux64.tar.gz
# mv geckodriver /opt/
# ln -s /opt/geckodriver /usr/local/bin
then
install eclipse
install nokia red
create and run test.robot
*** Settings ***
Library SeleniumLibrary
*** Test Cases ***
test1
open browser https://github.com/login
input text name user
input password password password
RobotFramework Refs
SeleniumLibrary Refs
- https://github.com/robotframework/SeleniumLibrary
- https://pypi.python.org/pypi/robotframework-seleniumlibrary#keyword-documentation
SeleniumLibrary Refs
- http://robotframework.org/#examples
- http://robotframework.org/SeleniumLibrary/
- http://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Keywords
Gecko Driver Refs
Eclipse RED Refs