PuppeteerLibrary is a Web Testing library for Robot Framework.
Project description
robotframework-puppeteer
Robot Framework Puppeteer Library powered by Pyppeteer. Improve automated web testing with native functionality from Puppeteer by Google.
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
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-puppeteerlibrary
Or manually install by running following command
pip install -r requirements.txt
python setup.py 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}
Maximize Browser Window
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
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
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
Hashes for robotframework-PuppeteerLibrary-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3d778571cd735d735d18eeb96479390bf95691eac9257dc1671891c126a1ed3 |
|
MD5 | 5cae241e71ea773a3675e5143f2b6287 |
|
BLAKE2b-256 | 5669eac3f14cb0e3252433c81bd3cc9b26b6d7b861647baab06d6188a38cb247 |
Hashes for robotframework_PuppeteerLibrary-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0a1234a19dea981b1271551f601f720bf96fae589eb11325da9e8a83cd1aa98 |
|
MD5 | 205278bd3a9a246d50e637a9c61fee78 |
|
BLAKE2b-256 | e19dae1a3a7e9f907cc79c6c841b1b99f3e894e8136733a3bbd0520bb46e2f6e |