Updating eval example
This commit is contained in:
parent
f9f17190d9
commit
dd8119a9c5
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user