DOM testing library inspired selectors for Robot Framework SeleniumLibrary.
Project description
rf-se-dtl-selectors-plugin
DOM testing library inspired selectors for Robot Framework SeleniumLibrary.
Installation
To install this plugin from PyPI, run:
pip install rf-se-dtl-selectors-plugin
Usage
In order to use selector provided by this plugin, load SeleniumLibrary
with TestingLibrarySelectorsPlugin
in the plugin array:
*** Settings ***
Library SeleniumLibrary plugins=TestingLibrarySelectorsPlugin
The plugin provides alttext
, label
, placeholder
, testid
, text
, and title
selectors. See acceptance_tests directory for usage examples.
Testing
Check and automatically fix formatting with:
pycodestyle TestingLibrarySelectorsPlugin
autopep8 -aaar --in-place TestingLibrarySelectorsPlugin
Run static analysis with:
pylint -E --enable=invalid-name,unused-import,useless-object-inheritance TestingLibrarySelectorsPlugin
Run acceptance tests in Docker container:
# Build image
docker build . -t atest
# Run tests
docker run --rm atest
# Run tests and get test output to ./out
docker run -v $(pwd)/out:/out --rm atest -d /out -L TRACE:INFO
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for rf-se-dtl-selectors-plugin-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1740d5a7057e79d85b1199921974435ab0d43641be4c5fa5f1e2996c2ee52cef |
|
MD5 | 1f786280cbd4e735f0f37b86437a3ec6 |
|
BLAKE2b-256 | 05ceed7d4aa29711ad6c4b018e28c84e18b37867711e3ab62a3bc86b43e7bfd2 |