playwright

wget https://go.dev/dl/go1.20.4.linux-amd64.tar.gz
tar -xzvf go1.20.4.linux-amd64.tar.gz -C /usr/local/
vim ~/.bashrc
export GOPATH=/root/gopath
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
source ~/.bashrc

go get github.com/playwright-community/playwright-go

go run github.com/playwright-community/playwright-go/cmd/playwright install --with-deps
# Or
go install github.com/playwright-community/playwright-go/cmd/playwright
playwright install --with-deps
posted @ 2023-06-11 14:40  月渊  阅读(32)  评论(0编辑  收藏  举报