We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e92beb7 commit 501e111Copy full SHA for 501e111
page_test.go
@@ -3,7 +3,6 @@ package rod_test
3
import (
4
"bytes"
5
"context"
6
- "fmt"
7
"image/png"
8
"math"
9
"net/http"
@@ -82,10 +81,7 @@ func TestSetBlockedURLs(t *testing.T) {
82
81
page.EnableDomain(proto.NetworkEnable{})
83
page.MustSetBlockedURLs(urlsPattern...)
84
urlsPattern = append(urlsPattern, "*.js")
85
- err := page.MustSetBlockedURLs(urlsPattern...)
86
- if err != nil {
87
- fmt.Println(err)
88
- }
+ page.MustSetBlockedURLs(urlsPattern...)
89
go page.EachEvent(
90
func(e *proto.NetworkLoadingFailed) {
91
g.Eq(e.BlockedReason, proto.NetworkBlockedReasonInspector)
0 commit comments