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.1.tar.gz (66.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

robotframework_PuppeteerLibrary-3.1.1-py3.10.egg (190.4 kB view details)

Uploaded Egg

robotframework_PuppeteerLibrary-3.1.1-py3-none-any.whl (78.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: robotframework-PuppeteerLibrary-3.1.1.tar.gz
  • Upload date:
  • Size: 66.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for robotframework-PuppeteerLibrary-3.1.1.tar.gz
Algorithm Hash digest
SHA256 524ce089c983419ffbb9f59a247c6ed1a6b40c26d42a214e902efb176e3e917c
MD5 9b7e324b851a8ce719bdce7c2dc9a357
BLAKE2b-256 187083c7ede7b714659234d0d306887f2bc1363f0d5af21858f32e74d1827b79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: robotframework_PuppeteerLibrary-3.1.1-py3.10.egg
  • Upload date:
  • Size: 190.4 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for robotframework_PuppeteerLibrary-3.1.1-py3.10.egg
Algorithm Hash digest
SHA256 1543cc10a15348be88b9a41d869cc8e9d4f80ae8bd79476e9fedf35bdc118157
MD5 d22a02b3ec789f8b4304831523617a4b
BLAKE2b-256 ba08387e3775ac3b1c465c86fb0a9a8d3df2ee96ee9a9abcf2a476d82c857fb2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: robotframework_PuppeteerLibrary-3.1.1-py3-none-any.whl
  • Upload date:
  • Size: 78.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for robotframework_PuppeteerLibrary-3.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2194a5b92b52edbabded5b92601c8ce6c1661f0e3f11a424ea859a4b2a5e15db
MD5 155845fa6512fba58e4c2289daaf77b0
BLAKE2b-256 d9568fb331139ca7a192f3a2ec9ca3fe41c4a1f1c7062495b9db03d5821023b7

See more details on using hashes here.

Supported by

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