{"record":{"id":"1e4b8d1bb8350342","repo":"grafana/k6","slug":"checking-q-w-1e4b8d","errorCode":null,"errorMessage":"checking %q: %w","messagePattern":"checking %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/common/locator.go","lineNumber":182,"sourceCode":"\topts.Strict = true\n\topts.retry = true\n\tif err := l.frame.setChecked(l.selector, checked, opts); err != nil {\n\t\treturn fmt.Errorf(\"setting %q checked to %v: %w\", l.selector, checked, err)\n\t}\n\n\tapplySlowMo(l.ctx)\n\n\treturn nil\n}\n\n// Check on an element using locator's selector with strict mode on.\nfunc (l *Locator) Check(opts *FrameCheckOptions) error {\n\tl.log.Debugf(\"Locator:Check\", \"fid:%s furl:%q sel:%q opts:%+v\", l.frame.ID(), l.frame.URL(), l.selector, opts)\n\n\topts.Strict = true\n\topts.retry = true\n\tif err := l.frame.check(l.selector, opts); err != nil {\n\t\treturn fmt.Errorf(\"checking %q: %w\", l.selector, err)\n\t}\n\n\tapplySlowMo(l.ctx)\n\n\treturn nil\n}\n\n// Uncheck on an element using locator's selector with strict mode on.\nfunc (l *Locator) Uncheck(opts *FrameUncheckOptions) error {\n\tl.log.Debugf(\"Locator:Uncheck\", \"fid:%s furl:%q sel:%q opts:%+v\", l.frame.ID(), l.frame.URL(), l.selector, opts)\n\n\topts.Strict = true\n\topts.retry = true\n\tif err := l.frame.uncheck(l.selector, opts); err != nil {\n\t\treturn fmt.Errorf(\"unchecking %q: %w\", l.selector, err)\n\t}\n\n\tapplySlowMo(l.ctx)","sourceCodeStart":164,"sourceCodeEnd":200,"githubUrl":"https://github.com/grafana/k6/blob/93accf6570dcd306ca5e99cc44c393ee3797761b/internal/js/modules/k6/browser/common/locator.go#L164-L200","documentation":"Error \"checking %q: %w\" thrown in grafana/k6.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/common/locator.go:182 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"}