1
0
mirror of synced 2026-08-05 15:06:54 +00:00

feat: provide jbang-catalog to run playwright cli (#519)

Co-authored-by: Max Rydahl Andersen <gitkraken@xam.dk>
This commit is contained in:
Max Rydahl Andersen
2021-07-27 09:51:12 +02:00
committed by GitHub
parent fb508701ef
commit 04419c7e5f
2 changed files with 27 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
///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);
}
}