🎠Playwright for Rust
Playwright is a rust library to automate Chromium, Firefox and WebKit built on top of Node.js library.
Installation
[dependencies]
playwright = "0.0.18"
Usage
use Playwright;
async
Async runtimes
These runtimes have passed tests. You can disable tokio, the default feature, and then choose another.
Incompatibility
Functions do not have default arguments in rust. Functions with two or more optional arguments are now passed with the builder pattern.
Playwright Driver
Playwright is designed as a server-client. All playwright client dependent on the driver: zip of core js library and Node.js. Application uses this library will be bundled the driver into rust binary at build time. There is an overhead of unzipping on the first run.
NOTICE
playwright-rust redistributes Playwright licensed under the Apache 2.0.
Playwright has NOTICE:
"""
Playwright
Copyright (c) Microsoft Corporation
This software contains code derived from the Puppeteer project (https://github.com/puppeteer/puppeteer),
available under the Apache 2.0 license (https://github.com/puppeteer/puppeteer/blob/master/LICENSE).
"""
Browser automation in rust
- atroche/rust-headless-chrome
- saresend/selenium-rs
- https://crates.io/crates/webdriver
- mattsse/chromiumoxide