{"record":{"id":"51e6f0748ab05b01","repo":"grafana/k6","slug":"checking-is-q-hidden-w-51e6f0","errorCode":null,"errorMessage":"checking is %q hidden: %w","messagePattern":"checking is %q hidden: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/common/locator.go","lineNumber":296,"sourceCode":"func (l *Locator) IsVisible() (bool, error) {\n\tl.log.Debugf(\"Locator:IsVisible\", \"fid:%s furl:%q sel:%q\", l.frame.ID(), l.frame.URL(), l.selector)\n\n\tvisible, err := l.frame.isVisible(l.selector, &FrameIsVisibleOptions{Strict: true})\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"checking is %q visible: %w\", l.selector, err)\n\t}\n\n\treturn visible, nil\n}\n\n// IsHidden returns true if the element matches the locator's\n// selector and is hidden. Otherwise, returns false.\nfunc (l *Locator) IsHidden() (bool, error) {\n\tl.log.Debugf(\"Locator:IsHidden\", \"fid:%s furl:%q sel:%q\", l.frame.ID(), l.frame.URL(), l.selector)\n\n\thidden, err := l.frame.isHidden(l.selector, &FrameIsHiddenOptions{Strict: true})\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"checking is %q hidden: %w\", l.selector, err)\n\t}\n\n\treturn hidden, nil\n}\n\n// Fill out the element using locator's selector with strict mode on.\nfunc (l *Locator) Fill(value string, opts *FrameFillOptions) error {\n\tl.log.Debugf(\n\t\t\"Locator:Fill\", \"fid:%s furl:%q sel:%q val:%q opts:%+v\",\n\t\tl.frame.ID(), l.frame.URL(), l.selector, value, opts,\n\t)\n\n\topts.Strict = true\n\tif err := l.frame.fill(l.selector, value, opts); err != nil {\n\t\treturn fmt.Errorf(\"filling %q with %q: %w\", l.selector, value, err)\n\t}\n\n\tapplySlowMo(l.ctx)","sourceCodeStart":278,"sourceCodeEnd":314,"githubUrl":"https://github.com/grafana/k6/blob/93accf6570dcd306ca5e99cc44c393ee3797761b/internal/js/modules/k6/browser/common/locator.go#L278-L314","documentation":"Error \"checking is %q hidden: %w\" thrown in grafana/k6.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/common/locator.go:296 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"93accf6570dcd306ca5e99cc44c393ee3797761b","analyzedAt":"2026-08-15T21:23:27.118Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}