From dd8119a9c5c19015aaf54caeb1d2d61670901f82 Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Fri, 22 Dec 2017 09:01:51 +0700 Subject: [PATCH] Updating eval example --- examples/eval/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/eval/main.go b/examples/eval/main.go index cc1c865..bf7f124 100644 --- a/examples/eval/main.go +++ b/examples/eval/main.go @@ -23,8 +23,8 @@ func main() { // run task list var res []string err = c.Run(ctxt, cdp.Tasks{ - cdp.Navigate(`https://www.brank.as`), - cdp.WaitVisible(`#footer`, cdp.ByID), + cdp.Navigate(`https://www.google.com/`), + cdp.WaitVisible(`#main`, cdp.ByID), cdp.Evaluate(`Object.keys(window);`, &res), }) if err != nil {