Skip to content

Latest commit

 

History

History
18 lines (18 loc) · 738 Bytes

File metadata and controls

18 lines (18 loc) · 738 Bytes

Example Playwright Python Project with Playwright Service Workspace

How to use this example

  • Clone the repository and navigate to the project folder
  • pip install -r requirements.txt
  • Create a Playwright workspace by following the Getting Started guide
  • Follow the Getting Started guidance and set the regional endpoint environment variable
$env:PLAYWRIGHT_SERVICE_URL="wss://...."
  • Generate access token following guide
  • Set the token generated in the previous step
$env:PLAYWRIGHT_SERVICE_ACCESS_TOKEN="TOKEN_VALUE"
  • Run the example script
python main.py