Skip to content

Instantly share code, notes, and snippets.

@Hillsie
Created February 20, 2023 21:27
Show Gist options
  • Save Hillsie/208e53023962de53baa85f2e087fb171 to your computer and use it in GitHub Desktop.
Save Hillsie/208e53023962de53baa85f2e087fb171 to your computer and use it in GitHub Desktop.
Silent / Unattended installation script - Playwright
#!/usr/bin/expect
set timeout -1
spawn npm init -y playwright@latest
expect "TypeScript" { send "\r" }
expect "tests" { send "\r" }
expect "Add a GitHub Actions workflow" { send "n\r" }
expect "Install Playwright browsers" { send "y\r" }
expect "Install Playwright operating system dependencies" { send "y\r" }
expect eof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment