grafana/k6 · error
checking is editable
Error message
checking is %q editable: %w
What it means
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.
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
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at internal/js/modules/k6/browser/common/locator.go:227 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of grafana/k6@01ffac6f24 (2026-08-18).
Data as JSON: /api/errors/15817ce950f2d70b.
Report an issue: GitHub.
Appendix: source
Thrown at internal/js/modules/k6/browser/common/locator.go:227
opts.Strict = true
checked, err := l.frame.isChecked(l.selector, opts)
if err != nil {
return false, fmt.Errorf("checking is %q checked: %w", l.selector, err)
}
return checked, nil
}
// IsEditable returns true if the element matches the locator's
// selector and is Editable. Otherwise, returns false.
func (l *Locator) IsEditable(opts *FrameIsEditableOptions) (bool, error) {
l.log.Debugf("Locator:IsEditable", "fid:%s furl:%q sel:%q opts:%+v", l.frame.ID(), l.frame.URL(), l.selector, opts)
opts.Strict = true
editable, err := l.frame.isEditable(l.selector, opts)
if err != nil {
return false, fmt.Errorf("checking is %q editable: %w", l.selector, err)
}
return editable, nil
}
// IsEnabled returns true if the element matches the locator's
// selector and is Enabled. Otherwise, returns false.
func (l *Locator) IsEnabled(opts *FrameIsEnabledOptions) (bool, error) {
l.log.Debugf("Locator:IsEnabled", "fid:%s furl:%q sel:%q opts:%+v", l.frame.ID(), l.frame.URL(), l.selector, opts)
opts.Strict = true
enabled, err := l.frame.isEnabled(l.selector, opts)
if err != nil {
return false, fmt.Errorf("checking is %q enabled: %w", l.selector, err)
}
return enabled, nil
}View on GitHub (pinned to 01ffac6f24)