An AngularJS extension to Robotframework's Selenium2Library
Project description
AngularJSLibrary - robotframework-angularjs
===========================================
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:
.. code:: bash
pip install robotframework-angularjs
Alternatively, to install from source:
.. code:: bash
python setup.py install
Keyword Usage
-------------
The new locator strategies include
.. code::
binding=
model=
repeater=
For example, you can look for an Angular ng-binding using
.. code:: robotframework
Get Text binding={{greeting}}
or by using partial match
.. code:: robotframework
Get Text binding=greet
or by simply using the binding {{…}} notation
.. code:: robotframework
Get Text {{greeting}}
One can also find elements by model
.. code:: robotframework
Input Text model=aboutbox Something else to write about
.. role:: rf(code)
:language robotframework
Finally there is the strategy of find by repeat. This takes the general form of :rf:`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 :rf:`repeater=baz in days@row[0]@column=b` is the same as :rf:`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 <https://groups.google.com/forum/#!forum/robotframework-users>`_.
References
----------
===========================================
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:
.. code:: bash
pip install robotframework-angularjs
Alternatively, to install from source:
.. code:: bash
python setup.py install
Keyword Usage
-------------
The new locator strategies include
.. code::
binding=
model=
repeater=
For example, you can look for an Angular ng-binding using
.. code:: robotframework
Get Text binding={{greeting}}
or by using partial match
.. code:: robotframework
Get Text binding=greet
or by simply using the binding {{…}} notation
.. code:: robotframework
Get Text {{greeting}}
One can also find elements by model
.. code:: robotframework
Input Text model=aboutbox Something else to write about
.. role:: rf(code)
:language robotframework
Finally there is the strategy of find by repeat. This takes the general form of :rf:`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 :rf:`repeater=baz in days@row[0]@column=b` is the same as :rf:`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 <https://groups.google.com/forum/#!forum/robotframework-users>`_.
References
----------
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
Close
Hashes for robotframework-angularjs-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a817d50e1655eb3ddffcfed4159426354eded7602d9beeb7fb62b165eb5478ed |
|
MD5 | f94f0f5d70d854fb25caceb34aad6e60 |
|
BLAKE2b-256 | 9a50e059c47b04a37e508e1bf9134672b5df26074b3d1fa345bb8908318e5b07 |
Close
Hashes for robotframework_angularjs-0.0.1-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9738fd85ec2c3a22ee765c65b999350b01043558b219b6e61f374f6d0a4d388 |
|
MD5 | 748baf34632e341ed13f94052957fe63 |
|
BLAKE2b-256 | 668b997355b6a7d53b6f116e2ab33eaa69cee65c655944f035d73175c1c01f45 |
Close
Hashes for robotframework_angularjs-0.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c73b1ba2566e7dc2a967a086782b8c45a0300d535d7adf51724cac1b6e7bbe9 |
|
MD5 | bff2f4f1738fc6c5c86c02f0df9823e8 |
|
BLAKE2b-256 | c606e1440a110bdf44efd4b7feee3e219b3bc5530b2efa623055710d98ae19a3 |