{"record":{"id":"87402e09873b79d1","repo":"grafana/k6","slug":"hovering-on-q-w","errorCode":null,"errorMessage":"hovering on %q: %w","messagePattern":"hovering on %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/common/locator.go","lineNumber":605,"sourceCode":"\topts.Strict = true\n\tif err := l.frame.typ(l.selector, text, opts); err != nil {\n\t\treturn spanRecordErrorf(span, \"typing %q in %q: %w\", text, l.selector, err)\n\t}\n\n\tapplySlowMo(l.ctx)\n\n\treturn nil\n}\n\n// Hover moves the pointer over the element that matches the locator's\n// selector with strict mode on.\nfunc (l *Locator) Hover(opts *FrameHoverOptions) error {\n\tl.log.Debugf(\"Locator:Hover\", \"fid:%s furl:%q sel:%q opts:%+v\", l.frame.ID(), l.frame.URL(), l.selector, opts)\n\n\topts.Strict = true\n\topts.retry = true\n\tif err := l.frame.hover(l.selector, opts); err != nil {\n\t\treturn fmt.Errorf(\"hovering on %q: %w\", l.selector, err)\n\t}\n\n\tapplySlowMo(l.ctx)\n\n\treturn nil\n}\n\n// Tap the element found that matches the locator's selector with strict mode on.\nfunc (l *Locator) Tap(opts *FrameTapOptions) error {\n\tl.log.Debugf(\"Locator:Tap\", \"fid:%s furl:%q sel:%q opts:%+v\", l.frame.ID(), l.frame.URL(), l.selector, opts)\n\n\topts.Strict = true\n\topts.retry = true\n\tif err := l.frame.tap(l.selector, opts); err != nil {\n\t\treturn fmt.Errorf(\"tapping on %q: %w\", l.selector, err)\n\t}\n\n\tapplySlowMo(l.ctx)","sourceCodeStart":587,"sourceCodeEnd":623,"githubUrl":"https://github.com/grafana/k6/blob/01ffac6f245854c1b8adc6a69857c76a15f90022/internal/js/modules/k6/browser/common/locator.go#L587-L623","documentation":"Wrapped failure from Frame.hover (with retry enabled) while moving the pointer over the element matched by the locator's selector (strict mode forced). Fires when the selector matches zero/multiple elements, the element is not hoverable (hidden or zero-size), or the CDP mouse-move events fail after retries.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/common/locator.go:605 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the element is visible and has a non-zero bounding box with a unique selector","Wait for animations/transitions to settle so the element stabilizes under the pointer","Covering overlays (menus, spinners) can intercept hover; remove or wait them out"],"exampleFix":null,"handlingStrategy":"retry","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"}