playwright-demo/readme.md

1.1 KiB

https://github.com/playwright-community/playwright-go?tab=readme-ov-file

  1. Install the browsers and OS dependencies:

     go run github.com/playwright-community/playwright-go/cmd/playwright@latest install --with-deps
     # Or
     go install github.com/playwright-community/playwright-go/cmd/playwright@latest
     playwright install --with-deps
    
  2. Alternatively you can do it inside your program via which downloads the driver and browsers:

     err := playwright.Install()
    
  3. Host system is missing dependencies to run browsers.

     ║ Please install them with the following command:      ║
     ║                                                      ║
     ║     sudo npx playwright install-deps                 ║
     ║                                                      ║
     ║ Alternatively, use apt:                              ║
     ║     sudo apt-get install libavif16                   ║
     ║                                                      ║
     ║ <3 Playwright Team                                   ║