Skip to main content

PuppeteerLibrary is a Web Testing library for Robot Framework.

Project description

Functional Test Gitpod ready-to-code

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

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

robotframework-PuppeteerLibrary-3.1.10.tar.gz (68.3 kB view details)

Uploaded Source

Built Distributions

File details

Details for the file robotframework-PuppeteerLibrary-3.1.10.tar.gz.

File metadata

File hashes

Hashes for robotframework-PuppeteerLibrary-3.1.10.tar.gz
Algorithm Hash digest
SHA256 ecfb1dfd1982427ebc204a98258b22c84100f068a747ac91f0ebf204b377ad2b
MD5 665d62a58384c243db685f464a0fd246
BLAKE2b-256 087574c307c18f2280b31434100ad84de637b2cd586e5b28d8ba244d0e99c575

See more details on using hashes here.

File details

Details for the file robotframework_PuppeteerLibrary-3.1.10-py3.10.egg.

File metadata

File hashes

Hashes for robotframework_PuppeteerLibrary-3.1.10-py3.10.egg
Algorithm Hash digest
SHA256 6bfeaed4007a8172c21ad4924c8d7ef36ec18594c890dadc201ae2da509b3413
MD5 6dbf33264d9444f3f568a8cb36e261e7
BLAKE2b-256 b475b5403dc158e047eac0ebb94532109d841e1b3d90500624b30d1b9e90d5fc

See more details on using hashes here.

File details

Details for the file robotframework_PuppeteerLibrary-3.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_PuppeteerLibrary-3.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 9157821e7d7f8a84e575268cbfc691bd369e6100a3cbb2895bc9469f68bafb42
MD5 faef69c74bcdcddfc284e403c0b9735e
BLAKE2b-256 889382b48c6d6e86fff38692a6b4e1f0dd0cc6c4d9665d730a4b0ba2456585ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page