@servant/servant-playwright
TypeScript icon, indicating that this package has built-in type declarations

1.0.14 • Public • Published

Servant Servant playwright

Quick references: Command line, Node API, servant.json, dev-server

What is it?

Servant playwright is module that use playwright module from Microsoft to running tests against more browsers. Noy you can run test on these browsers: Chromium, Webkit and Firefox. This list can change as playwright is developing so actually supported browser you can find on playwright page. Playwright also support emulating devices. Actually list of devices can be found on device list.

Module is only wrapper and provide mapping playwright API on Servant api.

Caveats

This module is optional for Servant, and it's not installed when installing Servant because of size of browsers core. To use more complex testing run npm install @servant/servant-playwright --save-dev in root project (when servant is installed).

Examples of usage

import { webkit } from "@servant/servant-playwright";

webkit(port, onLaunch, onStart, onEnd, device, gui);
import { firefox } from "@servant/servant-playwright";

firefox(port, onLaunch, onStart, onEnd, device, gui);
import { chromium } from "@servant/servant-playwright";

chromium(port, onLaunch, onStart, onEnd, device, gui);

License

Licensed under MIT

Playwright is licensed under Apache-2.0

Package Sidebar

Install

npm i @servant/servant-playwright

Weekly Downloads

1

Version

1.0.14

License

MIT

Unpacked Size

9.4 kB

Total Files

8

Last publish

Collaborators

  • hacker.stanislav