Puppeteer Percy Library is a puppeteer percy client library for robot framework
Project description
Robotframework-Puppeteer-Percy
Percy visual testing for Robot Framework Puppeteer.
Keyword documentation
See keyword documentation
for available keywords and more information about the library in general.
Installation
The recommended installation method is using pip:
pip install --upgrade robotframework-puppeteer-percylibrary
Or manually install by running following command
pip install -r requirements.txt
python setup.py install
Usage
Create file name quick-start.robot with following content:
*** Settings ***
Library PuppeteerLibrary
Library PuppeteerPercy
Test Teardown Close Browser
*** Test Cases ***
Capture home page screenshot
${HEADLESS} Get variable value ${HEADLESS} ${False}
&{options} = create dictionary headless=${HEADLESS}
Open browser http://example.com options=${options}
Maximize Browser Window
Percy Snapshot Home page
Need to run robot script with following command:
npx percy exec -- robot quick-start.robot
Limitation
- Not support for web site that restriction for other site resource files.
FAQ
- Snapshot throw error
ElementHandleError: Evaluation failed: Event
. Your web site not allow to inject 3rd party javascript. Need to ask developer to allow localhost javascript tobe executed.
Development
Generate update keyword documents
python -m robot.libdoc -f html PuppeteerPercy docs/PuppeteerPercy.html
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 Distribution
Close
Hashes for robotframework-puppeteer-percy-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 797bb0b4d2b934d078e6cc90463aa11c92397a4a01c856a895591ec9edd04fdb |
|
MD5 | 07de531a5cfa2eb6a44c5c9ac4ed26b1 |
|
BLAKE2b-256 | 3200789399c374b625497bd0117ac39ef9017d3f73bab1c517d9167f0245c603 |
Close
Hashes for robotframework_puppeteer_percy-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c1bc4c125893cf1cf62dc9526df4990b73db54b95d05b09f68085a2e53437f9 |
|
MD5 | ed99d62fb5293eba866976b13c9e24e8 |
|
BLAKE2b-256 | 90e25430c6a870ed3d9805b8e1364465e49c936eb17e97a1f4d971894f5cdf89 |