Closed twolao closed 1 month ago
Rod Version: v0.116.2
Clone Rod to your local and cd to the repository:
git clone https://github.com/go-rod/rod cd rod
Use your code to replace the content of function TestRod in file rod_test.go.
TestRod
rod_test.go
Test your code with: go test -run TestRod, make sure it fails as expected.
go test -run TestRod
Replace ALL THE CONTENT under "The code to demonstrate your question" with your TestRod function, like below:
package main import ( "github.com/go-rod/rod" "log" ) func main() { page := rod.New().MustConnect().MustPage("https://google.com") page.MustWaitLoad() page.MustWaitStable().MustScreenshot("a.png") select {} }
[launcher.Browser]2024/10/12 11:02:09 Download: https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/1321438/chrome-linux.zip [launcher.Browser]2024/10/12 11:02:10 Progress: 00% [launcher.Browser]2024/10/12 11:02:11 Progress: 24% Killed
ubuntu 22
install chromium and get a screenshot
It might be not enough memory or disk space for your system.
thanx
Rod Version: v0.116.2
The code to demonstrate your question
Clone Rod to your local and cd to the repository:
Use your code to replace the content of function
TestRod
in filerod_test.go
.Test your code with:
go test -run TestRod
, make sure it fails as expected.Replace ALL THE CONTENT under "The code to demonstrate your question" with your
TestRod
function, like below:What you got
[launcher.Browser]2024/10/12 11:02:09 Download: https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/1321438/chrome-linux.zip [launcher.Browser]2024/10/12 11:02:10 Progress: 00% [launcher.Browser]2024/10/12 11:02:11 Progress: 24% Killed
What you expect to see
ubuntu 22
install chromium and get a screenshot
What have you tried to solve the question