An AngularJS extension to Robotframework's Selenium2Library
Project description
An AngularJS extension to Robotframework’s Selenium2Library
What is included
AngularJSLibrary provides keywords for finding elements by binding, model, and repeater. The library also provides a keyword for waiting on angular.
Installation
To install AngularJSLibrary, run:
pip install robotframework-angularjs
Alternatively, to install from source:
python setup.py install
Keyword Usage
In order to use the keywords you have to include AngularJSLibrary in the settings section of your test.
*** Settings ***
Library AngularJSLibrary
...
*** Test Cases ***
Go To localhost:8080
Wait for Angular
...
The new locator strategies include
binding=
model=
repeater=
For example, you can look for an Angular ng-binding using
Get Text binding={{greeting}}
or by using partial match
Get Text binding=greet
or by simply using the binding {{…}} notation
Get Text {{greeting}}
One can also find elements by model
Input Text model=aboutbox Something else to write about
Finally there is the strategy of find by repeat. This takes the general form of repeater=some ngRepeat directive@row[n]@column={{ngBinding}}
. Here we specify the directive as well as the row, an zero-based index, and the column, an ngBinding. Using this full format will return, if exists the element matching the directive, row and column binding. One does not need to specify the row and column but can specify either both, one or the other or neither. In such cases the locator may return list of elements or even a list of list of elements. Also the ordering of row and column does not matter; using repeater=baz in days@row[0]@column=b
is the same as repeater=baz in days@column=b @row[0]
.
Getting Help
If you need help with AngularJSLibrary, Selenium2Library, or Robot Framework usage, please post to the user group for Robot Framework.
References
Selenium2Library: Web testing library for Robot Framework
Protractor: E2E test framework for Angular apps
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for robotframework-angularjs-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a953bd40b4ca0fff819b810160d4b338893f5fc92b64fcd0733b6dc6c3fad05 |
|
MD5 | fae605b6b2b8d9af838e6b43b5a09bc9 |
|
BLAKE2b-256 | 1c2a5b1ad4f657011fc90c0963087139d804f7a8e5a88b3e98f8316c9871102d |
Hashes for robotframework_angularjs-0.0.2-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2570f6bed85e95ebd103d3c26bdb251739c2a027482e78dde7c35f972702a590 |
|
MD5 | 830208b6239da2406730eb8c34a796d9 |
|
BLAKE2b-256 | 376ad01be1356529063e1aa7199f43daf791d29def9a1e81c90aa61c3dc6e0db |
Hashes for robotframework_angularjs-0.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 395a7e74959305d8c9c260693b4ce3f17075b76f12e0943d87b2d443d9d35dce |
|
MD5 | fbaf40b21ef73a89d5ec7ddfe171fb9e |
|
BLAKE2b-256 | 80aa8bd24fcffa89b4d3dd839704b2583f727d35b71768194c21bbd56eadac5d |