@servant/servant-playwright
v1.0.14
Published
Servant testing that use playwright to running browsers for tests.
Downloads
7
Maintainers
Readme
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
Playwright is licensed under Apache-2.0