robotframework-puppeteer
Robot Framework Puppeteer Library powered by Pyppeteer. Improve automated web testing with chrome native functionality from Puppeteer by Google and webkit from Playwright.
More detail please visit Robot Framework Puppeteer Homepage
We aim to provide keywords similar to robotframework-seleniumlibrary and add core puppeteer functionality that will improve test experiences. Example:
- Handle HTTP Request
- Handle HTTP Response
- Intercepter Http
- Intercepter javascript function
Browser Support
| Browser | Support | Library |
|---|---|---|
| Chromium | ✅ | Puppeteer & Playwright |
| WebKit | ✅ | Playwright |
| Firefox | ✅ | Playwright |
Keyword documentation
See keyword documentation for available keywords and more information about the library in general.
Installation
Please ensure you have Python version >= 3.7 installed.
The recommended installation method is using pip_::
pip install --upgrade robotframework-puppeteerlibrary
python -m playwright install
pyppeteer-install
Or manually install by running following command
pip install -r requirements.txt
python setup.py install
python -m playwright install
pyppeteer-install
Usage
*** Settings ***
Library PuppeteerLibrary
Test Teardown Close Browser
*** Test Cases ***
Example login form submit
${HEADLESS} Get variable value ${HEADLESS} ${False}
&{options} = create dictionary headless=${HEADLESS}
Open browser http://127.0.0.1:7272 options=${options}
Input text id:username_field demo
Input text id:password_field mode
Click Element id:login_button
Wait Until Page Contains Login succeeded
# Logout and wait for homepage loaded
Run Async Keywords
... Click Link partial link:logout AND
... Wait For Response Url http://127.0.0.1:7272/
Please run demo application on your local before execute example test scripts.
Starting demo application
Running tests requires the demo application located under demoapp directory to be running. It can be started either by double clicking demoapp/server.py file in a file manager or by executing it from the command line:
python demoapp/server.py
Full example please recheck Examples
Extended Puppeteer Libraries
| Library | Description |
|---|---|
| Percy.io | Visual testing library for Robot Framework Puppeteer. |
Contributor
robotframework-puppeteer mainly contribute by QAHive Co. Ltd.
Interested to contribute Cool!! please looking at the Contribution guidelines
Credit
- robotframework-SeleniumLibrary: Keywords design and document content
- robotframework-appiumlibrary: Keywords design and document content
- demoapp: Clone from robotframework/WebDemo project
Metadata
Release files for robotframework-PuppeteerLibrary 3.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| robotframework-PuppeteerLibrary-3.1.10.tar.gz | 68.3 kB | Without provenance | Details for robotframework-PuppeteerLibrary-3.1.10.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| robotframework_PuppeteerLibrary-3.1.10-py3.10.egg | Legacy Egg format | - | - | Details for robotframework_PuppeteerLibrary-3.1.10-py3.10.egg |
| robotframework_PuppeteerLibrary-3.1.10-py3-none-any.whl | Python 3 | none | any | Details for robotframework_PuppeteerLibrary-3.1.10-py3-none-any.whl |
Total release size: 343.0 kB
Release files / robotframework-PuppeteerLibrary-3.1.10.tar.gz
| Download URL | robotframework-PuppeteerLibrary-3.1.10.tar.gz |
|---|---|
| Size | 68.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ecfb1dfd1982427ebc204a98258b22c84100f068a747ac91f0ebf204b377ad2b
|
|
BLAKE2b-256 checksum How to use checksums |
087574c307c18f2280b31434100ad84de637b2cd586e5b28d8ba244d0e99c575
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / robotframework_PuppeteerLibrary-3.1.10-py3.10.egg
| Download URL | robotframework_PuppeteerLibrary-3.1.10-py3.10.egg |
|---|---|
| Size | 194.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
6bfeaed4007a8172c21ad4924c8d7ef36ec18594c890dadc201ae2da509b3413
|
|
BLAKE2b-256 checksum How to use checksums |
b475b5403dc158e047eac0ebb94532109d841e1b3d90500624b30d1b9e90d5fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / robotframework_PuppeteerLibrary-3.1.10-py3-none-any.whl
| Download URL | robotframework_PuppeteerLibrary-3.1.10-py3-none-any.whl |
|---|---|
| Size | 80.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9157821e7d7f8a84e575268cbfc691bd369e6100a3cbb2895bc9469f68bafb42
|
|
BLAKE2b-256 checksum How to use checksums |
889382b48c6d6e86fff38692a6b4e1f0dd0cc6c4d9665d730a4b0ba2456585ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Security for robotframework-PuppeteerLibrary 3.1.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.