{"record":{"id":"659d79a083ae76c4","repo":"grafana/k6","slug":"parsing-isvisible-options-of-selector-q-w","errorCode":null,"errorMessage":"parsing isVisible options of selector %q: %w","messagePattern":"parsing isVisible options of selector %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/browser/page_mapping.go","lineNumber":337,"sourceCode":"\t\t\t\treturn nil, fmt.Errorf(\"parse isEnabled options of selector %q: %w\", selector, err)\n\t\t\t}\n\t\t\treturn promise(vu, func() (any, error) {\n\t\t\t\treturn p.IsEnabled(selector, popts) //nolint:wrapcheck\n\t\t\t}), nil\n\t\t},\n\t\t\"isHidden\": func(selector string, opts sobek.Value) (*sobek.Promise, error) {\n\t\t\tpopts, err := parseFrameIsHiddenOptions(rt, opts)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"parse isHidden options of selector %q: %w\", selector, err)\n\t\t\t}\n\t\t\treturn promise(vu, func() (any, error) {\n\t\t\t\treturn p.IsHidden(selector, popts) //nolint:wrapcheck\n\t\t\t}), nil\n\t\t},\n\t\t\"isVisible\": func(selector string, opts sobek.Value) (*sobek.Promise, error) {\n\t\t\tpopts, err := parseFrameIsVisibleOptions(rt, opts)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"parsing isVisible options of selector %q: %w\", selector, err)\n\t\t\t}\n\t\t\treturn promise(vu, func() (any, error) {\n\t\t\t\treturn p.IsVisible(selector, popts) //nolint:wrapcheck\n\t\t\t}), nil\n\t\t},\n\t\t\"keyboard\": mapKeyboard(vu, p.GetKeyboard()),\n\t\t\"locator\": func(selector string, opts sobek.Value) *sobek.Object {\n\t\t\tml := mapLocator(vu, p.Locator(selector, parseLocatorOptions(rt, opts)))\n\t\t\treturn rt.ToValue(ml).ToObject(rt)\n\t\t},\n\t\t\"frameLocator\": func(selector string) *sobek.Object {\n\t\t\tmfl := mapFrameLocator(vu, p.FrameLocator(selector))\n\t\t\treturn rt.ToValue(mfl).ToObject(rt)\n\t\t},\n\t\t\"mainFrame\": func() *sobek.Object {\n\t\t\tmf := mapFrame(vu, p.MainFrame())\n\t\t\treturn rt.ToValue(mf).ToObject(rt)\n\t\t},","sourceCodeStart":319,"sourceCodeEnd":355,"githubUrl":"https://github.com/grafana/k6/blob/8d06114777191d21ef885d05c5f8aa9e1ed838ae/internal/js/modules/k6/browser/browser/page_mapping.go#L319-L355","documentation":"Generic parse wrapper for page.isVisible: the options argument failed to decode into common.FrameIsVisibleOptions; %q is the selector being tested. The wrapped error names the malformed option — isVisible accepts essentially no options, so any key is likely rejected.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/browser/page_mapping.go:336 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Call isVisible(selector) without an options argument","If a timeout was intended, note isVisible is a non-waiting check and takes no timeout"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8d06114777191d21ef885d05c5f8aa9e1ed838ae","analyzedAt":"2026-09-14T20:10:14.619Z","contentChangedAt":"2026-09-14T20:10:14.619Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}