Skip to content

harmin-parra/playwright-python-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

playwright-python-examples

These are the Cypress (https://example.cypress.io/) sample tests, but they have been rewritten into Playwright (python).

Be aware that some Cypress commands don't have an equivalent in Playwright, thus some workarounds are proposed whenever possible.

If you find a better solution or do you have an alternative solution to one of the tests, please share it with me by raising an issue.


To execute the tests:

  1. Install Playwright for python.

  2. Download the project

    git checkout git@github.com:harmin-parra/playwright-python-examples.git

    or download and unzip the zip file of the project

  3. Enter the folder of the project

    cd playwright-python-examples

  4. Execute the test

    • with headless browser

      pytest tests

    • with headed browser

      pytest --headed tests

About

Cypress sample tests rewritten into Playwright (python)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages