{"record":{"id":"60a98c43562625e4","repo":"grafana/k6","slug":"checking-is-q-disabled-w-60a98c","errorCode":null,"errorMessage":"checking is %q disabled: %w","messagePattern":"checking is %q disabled: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/common/locator.go","lineNumber":255,"sourceCode":"\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}\n\n// IsDisabled returns true if the element matches the locator's\n// selector and is disabled. Otherwise, returns false.\nfunc (l *Locator) IsDisabled(opts *FrameIsDisabledOptions) (bool, error) {\n\tl.log.Debugf(\"Locator:IsDisabled\", \"fid:%s furl:%q sel:%q opts:%+v\", l.frame.ID(), l.frame.URL(), l.selector, opts)\n\n\topts.Strict = true\n\tdisabled, err := l.frame.isDisabled(l.selector, opts)\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"checking is %q disabled: %w\", l.selector, err)\n\t}\n\n\treturn disabled, nil\n}\n\n// IsInViewport returns true if the element matches the locator's selector and\n// intersects the viewport by at least the requested ratio. Otherwise, returns\n// false.\nfunc (l *Locator) IsInViewport(opts *FrameIsInViewportOptions) (bool, error) {\n\tl.log.Debugf(\"Locator:IsInViewport\", \"fid:%s furl:%q sel:%q opts:%+v\", l.frame.ID(), l.frame.URL(), l.selector, opts)\n\n\topts.Strict = true\n\tinViewport, err := l.frame.isInViewport(l.selector, opts)\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"checking is %q in viewport: %w\", l.selector, err)\n\t}\n\n\treturn inViewport, nil","sourceCodeStart":237,"sourceCodeEnd":273,"githubUrl":"https://github.com/grafana/k6/blob/93accf6570dcd306ca5e99cc44c393ee3797761b/internal/js/modules/k6/browser/common/locator.go#L237-L273","documentation":"Error \"checking is %q disabled: %w\" thrown in grafana/k6.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/common/locator.go:255 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"}