tell to kill relay when testing locally
This commit is contained in:
+10
-4
@@ -50,10 +50,16 @@ make sure you have tsx installed globally: `pnpm i -g tsx`
|
||||
to test CLI changes without publishing:
|
||||
|
||||
```bash
|
||||
tsx playwriter/src/cli.ts -e "await page.goto('https://example.com')"
|
||||
tsx playwriter/src/cli.ts -e "console.log(await accessibilitySnapshot({ page }))"
|
||||
tsx playwriter/src/cli.ts session new
|
||||
tsx playwriter/src/cli.ts -s 1 -e "await page.click('button')"
|
||||
# mac/linux: kill any existing relay on 19988
|
||||
lsof -ti :19988 | xargs kill
|
||||
|
||||
# windows (powershell): kill any existing relay on 19988
|
||||
Get-NetTCPConnection -LocalPort 19988 | ForEach-Object { Stop-Process -Id $_.OwningProcess -Force }
|
||||
|
||||
tsx playwriter/src/cli.ts -s 1 -e "await page.goto('https://example.com')"
|
||||
tsx playwriter/src/cli.ts -s 1 -e "console.log(await accessibilitySnapshot({ page }))"
|
||||
tsx playwriter/src/cli.ts session new
|
||||
tsx playwriter/src/cli.ts -s 1 -e "await page.click('button')"
|
||||
```
|
||||
|
||||
### reloading extension during development
|
||||
|
||||
Reference in New Issue
Block a user