grafana/k6 · error
checking is %q visible: %w
Error message
checking is %q visible: %w
What it means
Error "checking is %q visible: %w" thrown in grafana/k6.
Source
Thrown at internal/js/modules/k6/browser/common/frame.go:1570
visible, err := f.isVisible(selector, opts)
if err != nil {
return false, err
}
return visible, nil
}
func (f *Frame) isVisible(selector string, opts *FrameIsVisibleOptions) (bool, error) {
isVisible := func(apiCtx context.Context, handle *ElementHandle) (any, error) {
v, err := handle.isVisible(apiCtx) // Zero timeout when checking state
if errors.Is(err, ErrTimedOut) { // We don't care about timeout errors here!
return v, nil
}
return v, err
}
v, err := f.runActionOnSelector(f.ctx, selector, opts.Strict, isVisible, func() bool { return false })
if err != nil {
return false, fmt.Errorf("checking is %q visible: %w", selector, err)
}
return v, nil
}
func (f *Frame) isInViewport(selector string, opts *FrameIsInViewportOptions) (bool, error) {
isInViewport := func(apiCtx context.Context, handle *ElementHandle) (any, error) {
v, err := handle.isInViewport(apiCtx, opts.Ratio)
if errors.Is(err, ErrTimedOut) { // We don't care about timeout errors here!
return v, nil
}
return v, err
}
act := f.newAction(
selector, DOMElementStateAttached, opts.Strict, isInViewport, []string{}, false, withRetry, true, opts.Timeout,
)
v, err := call(f.ctx, act, opts.Timeout)
if err != nil {View on GitHub (pinned to 93accf6570)
When it happens
Trigger: Thrown at internal/js/modules/k6/browser/common/frame.go:1570 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of grafana/k6@93accf6570 (2026-08-15).
Data as JSON: /api/errors/41c481080375a13c.
Report an issue: GitHub.