1
Fork 0

make script fail without a hostname

This commit is contained in:
Conduitry 2022-06-08 07:37:23 -04:00
parent 096e30ce0c
commit 7fe2a3466e
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,10 @@
import { firefox } from 'playwright-core';
if (process.argv.length !== 3) {
console.log('Usage: <hostname>');
process.exit(1);
}
const browser = await firefox.launch();
const context = await browser.newContext();
const page = await context.newPage();