Giter Site home page Giter Site logo

playrunner's Introduction

Playrunner

npm version ci

A user flow testing tool for websites based on Playwright.

Inspired by fluttium

Usage

npx playrunner run <path to flow file>

Here is an example flow file. You can see more examples in the examples folder.

# This flow recreates the example test from the Playwright docs https://playwright.dev/docs/writing-tests#the-example-test
- description: homepage has Playwright in title and get started link linking to the intro page
- goTo: "https://playwright.dev/"       # Navigate to a URL
- expectTitle: Playwright               # Check the page title, supports RegEx
- expectAttribute:                      # Check an attribute of an element
    name: href
    value: /docs/intro
    locator:
      role: link
      name: Get started
- clickOn:                              # Click on an element
    locator:
      role: link
      name: Get started
- expectUrl: .*intro                    # Check the URL, supports RegEx

Development

  • Clone the repo and cd into it, then npm i to install dependencies.
  • Run npm run dev -- <flow_file> to execute your flow.

Try npm run dev -- examples/playwright.yaml to run the example flow.

Notes

This project is in early development and most Playwright capabilities are not hooked up yet. The only enabled capabilities are those found used in the examples folder.

playrunner's People

Contributors

misterjimson avatar

Stargazers

yuchou avatar Dima Kharlap avatar Umar Hansa avatar Tristan Bailey avatar Phathutshedzo Khabubu avatar  avatar Ayotomide avatar Jochum van der Ploeg avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.