diff --git a/pkg/stdlib/html/driver/dynamic/document.go b/pkg/stdlib/html/driver/dynamic/document.go index 74cd4cbe..12020066 100644 --- a/pkg/stdlib/html/driver/dynamic/document.go +++ b/pkg/stdlib/html/driver/dynamic/document.go @@ -22,7 +22,7 @@ import ( ) -const BlankPageUrl = "about:blank" +const BlankPageURL = "about:blank" type HTMLDocument struct { sync.Mutex @@ -81,7 +81,7 @@ func LoadHTMLDocument( return nil, err } - if url != BlankPageUrl { + if url != BlankPageURL { err = waitForLoadEvent(ctx, client) if err != nil { @@ -641,7 +641,7 @@ func (doc *HTMLDocument) WaitForNavigation(timeout values.Int) error { func (doc *HTMLDocument) Navigate(url values.String) error { if url == "" { - url = BlankPageUrl + url = BlankPageURL } ctx := context.Background() diff --git a/pkg/stdlib/html/driver/dynamic/dynamic.go b/pkg/stdlib/html/driver/dynamic/dynamic.go index 78cadc80..65c81813 100644 --- a/pkg/stdlib/html/driver/dynamic/dynamic.go +++ b/pkg/stdlib/html/driver/dynamic/dynamic.go @@ -39,7 +39,7 @@ func (drv *Driver) GetDocument(ctx context.Context, url string) (values.HTMLNode defer cancel() if url == "" { - url = BlankPageUrl + url = BlankPageURL } // Create a new target belonging to the browser context, similar