feat: provide jbang-catalog to run playwright cli (#519)
Co-authored-by: Max Rydahl Andersen <gitkraken@xam.dk>
This commit is contained in:
committed by
GitHub
parent
fb508701ef
commit
04419c7e5f
Executable
+17
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user