Updating eval example

This commit is contained in:
Kenneth Shaw 2017-12-22 09:01:51 +07:00
parent f9f17190d9
commit dd8119a9c5

View File

@ -23,8 +23,8 @@ func main() {
// run task list // run task list
var res []string var res []string
err = c.Run(ctxt, cdp.Tasks{ err = c.Run(ctxt, cdp.Tasks{
cdp.Navigate(`https://www.brank.as`), cdp.Navigate(`https://www.google.com/`),
cdp.WaitVisible(`#footer`, cdp.ByID), cdp.WaitVisible(`#main`, cdp.ByID),
cdp.Evaluate(`Object.keys(window);`, &res), cdp.Evaluate(`Object.keys(window);`, &res),
}) })
if err != nil { if err != nil {