{"record":{"id":"bf7a7482428f235f","repo":"grafana/k6","slug":"hovering-q-w","errorCode":null,"errorMessage":"hovering %q: %w","messagePattern":"hovering %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/common/frame.go","lineNumber":1273,"sourceCode":"\t\treturn nil, fmt.Errorf(\"navigating frame to %q: %w\", url, err)\n\t}\n\tapplySlowMo(f.ctx)\n\n\t// Since the response will be in an interface, it will never be nil,\n\t// so we need to return nil explicitly.\n\tif resp == nil {\n\t\treturn nil, nil //nolint:nilnil\n\t}\n\n\treturn resp, nil\n}\n\n// Hover moves the pointer over the first element that matches the selector.\nfunc (f *Frame) Hover(selector string, popts *FrameHoverOptions) error {\n\tf.log.Debugf(\"Frame:Hover\", \"fid:%s furl:%q sel:%q\", f.ID(), f.URL(), selector)\n\n\tif err := f.hover(selector, popts); err != nil {\n\t\treturn fmt.Errorf(\"hovering %q: %w\", selector, err)\n\t}\n\n\tapplySlowMo(f.ctx)\n\n\treturn nil\n}\n\nfunc (f *Frame) hover(selector string, opts *FrameHoverOptions) error {\n\thover := func(apiCtx context.Context, handle *ElementHandle, p *Position) (any, error) {\n\t\treturn nil, handle.hover(apiCtx, p)\n\t}\n\tact := f.newPointerAction(\n\t\tselector, DOMElementStateAttached, opts.Strict, hover, &opts.ElementHandleBasePointerOptions,\n\t)\n\tif _, err := call(f.ctx, act, opts.Timeout); err != nil {\n\t\treturn errorFromDOMError(err)\n\t}\n","sourceCodeStart":1255,"sourceCodeEnd":1291,"githubUrl":"https://github.com/grafana/k6/blob/3fcf5388d78cb382f0c0d42ec556a06bfd1b8dee/internal/js/modules/k6/browser/common/frame.go#L1255-L1291","documentation":"Returned by Frame.Hover after the internal hover pipeline (resolve selector, actionability checks, move mouse) fails. Wrap-only: the underlying pointer-action error (not visible/stable, intercepted hit target, timeout) carries the real cause.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/common/frame.go:1265 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Wait for the element to be visible and stable","Increase the timeout","Use force:true to bypass actionability checks","Ensure nothing covers the element"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3fcf5388d78cb382f0c0d42ec556a06bfd1b8dee","analyzedAt":"2026-08-18T03:05:52.393Z","contentChangedAt":"2026-08-18T03:05:52.393Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}