playwright-java/scripts/playwright.java
Max Rydahl Andersen 04419c7e5f
feat: provide jbang-catalog to run playwright cli (#519)
Co-authored-by: Max Rydahl Andersen <gitkraken@xam.dk>
2021-07-27 00:51:12 -07:00

18 lines
700 B
Java
Executable File

///usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS com.microsoft.playwright:playwright:RELEASE
//DESCRIPTION Playwright lets you automate Chromium, Firefox and Webkit with a single API.
//DESCRIPTION With this cli you can install, trace, generate pdf and screenshots and more.
//DESCRIPTION
//DESCRIPTION Example on how to record and run a script:
//DESCRIPTION ```
//DESCRIPTION jbang playwright@microsoft/playwright-java codegen -o Example.java`
//DESCRIPTION jbang --deps com.microsoft.playwright:playwright:RELEASE Example.java
//DESCRIPTION ```
public class playwright {
public static void main(String... args) throws Exception {
com.microsoft.playwright.CLI.main(args);
}
}