Skip to content

Commit 2b24b99

Browse files
authored
add manual launch sample for nodejs (#199)
1 parent 3d7bec7 commit 2b24b99

File tree

5 files changed

+1375
-0
lines changed

5 files changed

+1375
-0
lines changed

samples/playwright-lib/ReadMe.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Example Playwright Library Project with Service Workspace
2+
# How to use this example
3+
- Clone the repo and go to the folder
4+
- npm install
5+
- Create a Playwright workspace by following the [Getting Started guide](https://aka.ms/mpt/manage-workspaces)
6+
- Follow the [Getting Started guidance](https://aka.ms/mpt/configure-service-endpoint) and set the regional endpoint environment variable
7+
```
8+
$env:PLAYWRIGHT_SERVICE_URL="wss://...."
9+
```
10+
- Generate access token following [guide](https://aka.ms/mpt/generate-access-token)
11+
- Set the token generated in the previous step
12+
```
13+
$env:PLAYWRIGHT_SERVICE_ACCESS_TOKEN="TOKEN_VALUE"
14+
```
15+
- Run the example script
16+
```
17+
npx ts-node src/example.ts
18+
```

0 commit comments

Comments
 (0)