Go to file
suguo.yao b194fbd2d5 init 2025-03-15 07:02:27 +08:00
go.mod init 2025-03-15 07:02:27 +08:00
go.sum init 2025-03-15 07:02:27 +08:00
main.go init 2025-03-15 07:02:27 +08:00
readme.md init 2025-03-15 07:02:27 +08:00

readme.md

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                                   ║