{"record":{"id":"f46ea19d8cb5dcf5","repo":"grafana/k6","slug":"double-clicking-on-x-f-y-f-w","errorCode":null,"errorMessage":"double clicking on x:%f y:%f: %w","messagePattern":"double clicking on x:(.+?) y:(.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/common/mouse.go","lineNumber":72,"sourceCode":"\t\t\tt := time.NewTimer(time.Duration(opts.Delay) * time.Millisecond)\n\t\t\tselect {\n\t\t\tcase <-m.ctx.Done():\n\t\t\t\tt.Stop()\n\t\t\tcase <-t.C:\n\t\t\t}\n\t\t}\n\t\tif err := m.up(mouseDownUpOpts); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\treturn nil\n}\n\n// DblClick will trigger Click twice in quick succession.\nfunc (m *Mouse) DblClick(x float64, y float64, opts *MouseDblClickOptions) error {\n\tif err := m.click(x, y, opts.ToMouseClickOptions()); err != nil {\n\t\treturn fmt.Errorf(\"double clicking on x:%f y:%f: %w\", x, y, err)\n\t}\n\treturn nil\n}\n\n// Down will trigger a MouseDown event in the browser.\nfunc (m *Mouse) Down(opts *MouseDownUpOptions) error {\n\tif err := m.down(opts); err != nil {\n\t\treturn fmt.Errorf(\"pressing the mouse button on x:%f y:%f: %w\", m.x, m.y, err)\n\t}\n\treturn nil\n}\n\nfunc (m *Mouse) down(opts *MouseDownUpOptions) error {\n\tm.button = input.MouseButton(opts.Button)\n\taction := input.DispatchMouseEvent(input.MousePressed, m.x, m.y).\n\t\tWithButton(input.MouseButton(opts.Button)).\n\t\tWithModifiers(input.Modifier(m.keyboard.modifiers)).\n\t\tWithClickCount(opts.ClickCount)","sourceCodeStart":54,"sourceCodeEnd":90,"githubUrl":"https://github.com/grafana/k6/blob/01ffac6f245854c1b8adc6a69857c76a15f90022/internal/js/modules/k6/browser/common/mouse.go#L54-L90","documentation":"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.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/common/mouse.go:72 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ffac6f245854c1b8adc6a69857c76a15f90022","analyzedAt":"2026-08-18T03:05:52.393Z","contentChangedAt":"2026-08-18T03:05:52.393Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}