{"record":{"id":"41c481080375a13c","repo":"grafana/k6","slug":"checking-is-q-visible-w","errorCode":null,"errorMessage":"checking is %q visible: %w","messagePattern":"checking is %q visible: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/common/frame.go","lineNumber":1570,"sourceCode":"\tvisible, err := f.isVisible(selector, opts)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\treturn visible, nil\n}\n\nfunc (f *Frame) isVisible(selector string, opts *FrameIsVisibleOptions) (bool, error) {\n\tisVisible := func(apiCtx context.Context, handle *ElementHandle) (any, error) {\n\t\tv, err := handle.isVisible(apiCtx) // Zero timeout when checking state\n\t\tif errors.Is(err, ErrTimedOut) {   // We don't care about timeout errors here!\n\t\t\treturn v, nil\n\t\t}\n\t\treturn v, err\n\t}\n\tv, err := f.runActionOnSelector(f.ctx, selector, opts.Strict, isVisible, func() bool { return false })\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"checking is %q visible: %w\", selector, err)\n\t}\n\n\treturn v, nil\n}\n\nfunc (f *Frame) isInViewport(selector string, opts *FrameIsInViewportOptions) (bool, error) {\n\tisInViewport := func(apiCtx context.Context, handle *ElementHandle) (any, error) {\n\t\tv, err := handle.isInViewport(apiCtx, opts.Ratio)\n\t\tif errors.Is(err, ErrTimedOut) { // We don't care about timeout errors here!\n\t\t\treturn v, nil\n\t\t}\n\t\treturn v, err\n\t}\n\tact := f.newAction(\n\t\tselector, DOMElementStateAttached, opts.Strict, isInViewport, []string{}, false, withRetry, true, opts.Timeout,\n\t)\n\tv, err := call(f.ctx, act, opts.Timeout)\n\tif err != nil {","sourceCodeStart":1552,"sourceCodeEnd":1588,"githubUrl":"https://github.com/grafana/k6/blob/93accf6570dcd306ca5e99cc44c393ee3797761b/internal/js/modules/k6/browser/common/frame.go#L1552-L1588","documentation":"Error \"checking is %q visible: %w\" thrown in grafana/k6.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/common/frame.go:1570 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"}