Skip to main content

A simple library for automation testing with UI and API using Playwright

Project description

robotframework-playerlibrary

Simple GUI/API automation testing library written in Python using Playwright

Import the library:

*** Settings ***
Library           PlayerLibrary

Example keyword:

*** Keywords ***
Login into the system using provided account
    Input Into    id:login-email       sample-test@abc.com
    Input Into    id:login-password    yourpassword
    Click    //button[contains(.,"Sign In")]
    Page Should Have    Welcome Back!

Example scenario:

Suite Setup          Start Browser Then Open Url    https://sample-system.com/     headless=True


Test Setup       Login into the system using provided account    AND
Test Teardown       Start new browser session
Suite Teardown      Quit all browsers

*** Test Cases ***
TC_01 - Check correctness of some elements on the screen
    Element Should Be Shown    ${calendar_picker}
    Element Should Be Shown    ${apply_btn}
    Element Should Be Shown    ${clear_btn}

Keyword documentation at https://lynhbn.github.io/robotframework-playerlibrary/keyword_document.html

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-playerlibrary-1.0.3.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

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

robotframework_playerlibrary-1.0.3-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file robotframework-playerlibrary-1.0.3.tar.gz.

File metadata

File hashes

Hashes for robotframework-playerlibrary-1.0.3.tar.gz
Algorithm Hash digest
SHA256 b9c9e18d4edd77125780cb624be296abb966b9476f7417482e10b5f25c416a92
MD5 3db566fc641dd58da95d80b8b7b69a72
BLAKE2b-256 88d8fc799bdfd8c963cf07946c202c4de14d950b1415511beac36bcbedebb805

See more details on using hashes here.

File details

Details for the file robotframework_playerlibrary-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_playerlibrary-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3337c0469cd07f68a775377babc92350a868b83ff9b65099c514685b803aa20c
MD5 c0e0e339f566c4537b6f8a7b19e84395
BLAKE2b-256 cf3d0b7c7f9d709288fc3a9b3949a7c02817c58e30f1224e3a4e5e6d7ad56555

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