grafana/k6 · error
double clicking on x
Error message
double clicking on x:%f y:%f: %w
What it means
Wrapped failure from the shared internal click routine when performing a double click at the given coordinates. Fires when any CDP mouse event in the two-click sequence fails, e.g. session closed, context canceled, or the browser rejected the event.
Solutions
- Confirm the page is open and the session valid before double clicking
- Ensure the target coordinates are within the viewport
- Avoid firing double clicks during iteration teardown
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at internal/js/modules/k6/browser/common/mouse.go:72 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/f46ea19d8cb5dcf5.
Report an issue: GitHub.
Appendix: source
Thrown at internal/js/modules/k6/browser/common/mouse.go:72
t := time.NewTimer(time.Duration(opts.Delay) * time.Millisecond)
select {
case <-m.ctx.Done():
t.Stop()
case <-t.C:
}
}
if err := m.up(mouseDownUpOpts); err != nil {
return err
}
}
return nil
}
// DblClick will trigger Click twice in quick succession.
func (m *Mouse) DblClick(x float64, y float64, opts *MouseDblClickOptions) error {
if err := m.click(x, y, opts.ToMouseClickOptions()); err != nil {
return fmt.Errorf("double clicking on x:%f y:%f: %w", x, y, err)
}
return nil
}
// Down will trigger a MouseDown event in the browser.
func (m *Mouse) Down(opts *MouseDownUpOptions) error {
if err := m.down(opts); err != nil {
return fmt.Errorf("pressing the mouse button on x:%f y:%f: %w", m.x, m.y, err)
}
return nil
}
func (m *Mouse) down(opts *MouseDownUpOptions) error {
m.button = input.MouseButton(opts.Button)
action := input.DispatchMouseEvent(input.MousePressed, m.x, m.y).
WithButton(input.MouseButton(opts.Button)).
WithModifiers(input.Modifier(m.keyboard.modifiers)).
WithClickCount(opts.ClickCount)View on GitHub (pinned to 01ffac6f24)