Fixing issue from last protocol definition update

This commit is contained in:
Kenneth Shaw 2017-11-22 16:02:51 +07:00
parent 88d4832728
commit 4f13da10e7

2
nav.go
View File

@ -11,7 +11,7 @@ import (
// Navigate navigates the current frame. // Navigate navigates the current frame.
func Navigate(urlstr string) Action { func Navigate(urlstr string) Action {
return ActionFunc(func(ctxt context.Context, h cdp.Handler) error { return ActionFunc(func(ctxt context.Context, h cdp.Handler) error {
frameID, err := page.Navigate(urlstr).Do(ctxt, h) frameID, _, _, err := page.Navigate(urlstr).Do(ctxt, h)
if err != nil { if err != nil {
return err return err
} }