Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed Mar 14, 2021
1 parent 886b270 commit a0a8747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion page.go
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ func (p *Page) EvalOnNewDocument(js string) (remove func() error, err error) {
return
}

// Wait js function until it returns true
// Wait until the js returns true
func (p *Page) Wait(this *proto.RuntimeRemoteObject, js string, params []interface{}) error {
return utils.Retry(p.ctx, p.sleeper(), func() (bool, error) {
opts := Eval(js, params...).This(this)
Expand Down

0 comments on commit a0a8747

Please sign in to comment.