Skip to content

Commit f490d70

Browse files
committed
Update comment and log for GetByRole
1 parent be4b038 commit f490d70

File tree

1 file changed

+3
-2
lines changed
  • internal/js/modules/k6/browser/common

1 file changed

+3
-2
lines changed

internal/js/modules/k6/browser/common/frame.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,9 +1002,10 @@ func (f *Frame) getAttribute(selector, name string, opts *FrameBaseOptions) (str
10021002
return s, true, nil
10031003
}
10041004

1005-
// Locator creates and returns a new locator for this frame.
1005+
// GetByRole creates and returns a new locator for this frame using the ARIA role
1006+
// and any additional options.
10061007
func (f *Frame) GetByRole(role string, opts *GetByRoleOptions) *Locator {
1007-
f.log.Debugf("Frame:Locator", "fid:%s furl:%q role:%q opts:%+v", f.ID(), f.URL(), role, opts)
1008+
f.log.Debugf("Frame:GetByRole", "fid:%s furl:%q role:%q opts:%+v", f.ID(), f.URL(), role, opts)
10081009

10091010
properties := make(map[string]string)
10101011

0 commit comments

Comments
 (0)