go-rod-chinese
go-rod-chinese copied to clipboard
M1 Mac RunTimeError: ERR_INVALID_AUTH_CREDENTIALS
Rod Version: github.com/go-rod/rod v0.116.2
The code to demonstrate your question
-
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
TestLab
in filelab_test.go
. -
Test your code with:
go test -run TestLab
, make sure it fails as expected. -
Replace ALL THE CONTENT under "The code to demonstrate your question" with your
TestLab
function, like below:
func main() {
page := rod.New().MustConnect().MustPage("https://www.wikipedia.org/")
page.MustWaitStable().MustScreenshot("a.png")
}
What you got
Such as what error you see.
What you expected to see
Such as what you want to do.
What have you tried to solve the question
Such as after modifying some source code of Rod you are able to get rid of the problem.