Skip to content

Commit

Permalink
Revert "Async page.viewportSize"
Browse files Browse the repository at this point in the history
This reverts commit adc3814.
  • Loading branch information
inancgumus committed May 30, 2024
1 parent dd1df62 commit a48fc0e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions browser/page_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,8 @@ func mapPage(vu moduleVU, p *common.Page) mapping { //nolint:gocognit,cyclop
return nil, p.Uncheck(selector, opts) //nolint:wrapcheck
})
},
"url": p.URL,
"viewportSize": func() *goja.Promise {
return k6ext.Promise(vu.Context(), func() (any, error) {
return p.ViewportSize(), nil
})
},
"url": p.URL,
"viewportSize": p.ViewportSize,
"waitForFunction": func(pageFunc, opts goja.Value, args ...goja.Value) (*goja.Promise, error) {
js, popts, pargs, err := parseWaitForFunctionArgs(
vu.Context(), p.Timeout(), pageFunc, opts, args...,
Expand Down

0 comments on commit a48fc0e

Please sign in to comment.