{"record":{"id":"15817ce950f2d70b","repo":"grafana/k6","slug":"checking-is-q-editable-w-15817c","errorCode":null,"errorMessage":"checking is %q editable: %w","messagePattern":"checking is %q editable: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/common/locator.go","lineNumber":227,"sourceCode":"\n\topts.Strict = true\n\tchecked, err := l.frame.isChecked(l.selector, opts)\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"checking is %q checked: %w\", l.selector, err)\n\t}\n\n\treturn checked, nil\n}\n\n// IsEditable returns true if the element matches the locator's\n// selector and is Editable. Otherwise, returns false.\nfunc (l *Locator) IsEditable(opts *FrameIsEditableOptions) (bool, error) {\n\tl.log.Debugf(\"Locator:IsEditable\", \"fid:%s furl:%q sel:%q opts:%+v\", l.frame.ID(), l.frame.URL(), l.selector, opts)\n\n\topts.Strict = true\n\teditable, err := l.frame.isEditable(l.selector, opts)\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"checking is %q editable: %w\", l.selector, err)\n\t}\n\n\treturn editable, nil\n}\n\n// IsEnabled returns true if the element matches the locator's\n// selector and is Enabled. Otherwise, returns false.\nfunc (l *Locator) IsEnabled(opts *FrameIsEnabledOptions) (bool, error) {\n\tl.log.Debugf(\"Locator:IsEnabled\", \"fid:%s furl:%q sel:%q opts:%+v\", l.frame.ID(), l.frame.URL(), l.selector, opts)\n\n\topts.Strict = true\n\tenabled, err := l.frame.isEnabled(l.selector, opts)\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"checking is %q enabled: %w\", l.selector, err)\n\t}\n\n\treturn enabled, nil\n}","sourceCodeStart":209,"sourceCodeEnd":245,"githubUrl":"https://github.com/grafana/k6/blob/01ffac6f245854c1b8adc6a69857c76a15f90022/internal/js/modules/k6/browser/common/locator.go#L209-L245","documentation":"Wrapped failure from Frame.isEditable while testing editability of the element matching the locator's selector (strict mode forced). Fires when the selector matches zero or multiple elements or when the CDP editability evaluation fails — a non-editable element itself yields (false, nil), not this error.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/common/locator.go:227 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Refine the selector so exactly one element matches in strict mode","Ensure the element is attached to the DOM and not inside a detached iframe","Treat a returned error separately from a false editability result"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ffac6f245854c1b8adc6a69857c76a15f90022","analyzedAt":"2026-08-18T03:05:52.393Z","contentChangedAt":"2026-08-18T03:05:52.393Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}