grafana/k6 · error
hovering %q: %w
Error message
hovering %q: %w
What it means
Error "hovering %q: %w" thrown in grafana/k6.
Source
Thrown at internal/js/modules/k6/browser/common/frame.go:1265
return nil, fmt.Errorf("navigating frame to %q: %w", url, err)
}
applySlowMo(f.ctx)
// Since the response will be in an interface, it will never be nil,
// so we need to return nil explicitly.
if resp == nil {
return nil, nil //nolint:nilnil
}
return resp, nil
}
// Hover moves the pointer over the first element that matches the selector.
func (f *Frame) Hover(selector string, popts *FrameHoverOptions) error {
f.log.Debugf("Frame:Hover", "fid:%s furl:%q sel:%q", f.ID(), f.URL(), selector)
if err := f.hover(selector, popts); err != nil {
return fmt.Errorf("hovering %q: %w", selector, err)
}
applySlowMo(f.ctx)
return nil
}
func (f *Frame) hover(selector string, opts *FrameHoverOptions) error {
hover := func(apiCtx context.Context, handle *ElementHandle, p *Position) (any, error) {
return nil, handle.hover(apiCtx, p)
}
act := f.newPointerAction(
selector, DOMElementStateAttached, opts.Strict, hover, &opts.ElementHandleBasePointerOptions,
)
if _, err := call(f.ctx, act, opts.Timeout); err != nil {
return errorFromDOMError(err)
}
View on GitHub (pinned to 93accf6570)
When it happens
Trigger: Thrown at internal/js/modules/k6/browser/common/frame.go:1265 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/bf7a7482428f235f.
Report an issue: GitHub.