Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 65ab3c2

Browse files
author
Ivan Mirić
committed
Call correct option parsing function in Frame.InnerText
1 parent c08e2ed commit 65ab3c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/frame.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ func (f *Frame) InnerHTML(selector string, opts goja.Value) string {
10131013
func (f *Frame) InnerText(selector string, opts goja.Value) string {
10141014
f.log.Debugf("Frame:InnerText", "fid:%s furl:%q sel:%q", f.ID(), f.URL(), selector)
10151015

1016-
parsedOpts := NewFrameInnerHTMLOptions(f.defaultTimeout())
1016+
parsedOpts := NewFrameInnerTextOptions(f.defaultTimeout())
10171017
if err := parsedOpts.Parse(f.ctx, opts); err != nil {
10181018
k6Throw(f.ctx, "%w", err)
10191019
}

0 commit comments

Comments
 (0)