mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 14:33:41 +00:00
Update to current chromedp.
This commit is contained in:
committed by
Ron Evans
parent
92ed645a11
commit
5642d72fbe
@@ -16,6 +16,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/chromedp/cdproto/cdp"
|
||||
"github.com/chromedp/cdproto/runtime"
|
||||
"github.com/chromedp/chromedp"
|
||||
)
|
||||
|
||||
@@ -166,7 +167,7 @@ func waitInnerTextMatch(sel string, re *regexp.Regexp) chromedp.QueryAction {
|
||||
|
||||
return chromedp.Query(sel, func(s *chromedp.Selector) {
|
||||
|
||||
chromedp.WaitFunc(func(ctx context.Context, cur *cdp.Frame, ids ...cdp.NodeID) ([]*cdp.Node, error) {
|
||||
chromedp.WaitFunc(func(ctx context.Context, cur *cdp.Frame, execCtx runtime.ExecutionContextID, ids ...cdp.NodeID) ([]*cdp.Node, error) {
|
||||
|
||||
nodes := make([]*cdp.Node, len(ids))
|
||||
cur.RLock()
|
||||
|
||||
Reference in New Issue
Block a user