{"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":1265,"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":1247,"sourceCodeEnd":1283,"githubUrl":"https://github.com/grafana/k6/blob/93accf6570dcd306ca5e99cc44c393ee3797761b/internal/js/modules/k6/browser/common/frame.go#L1247-L1283","documentation":"Error \"hovering %q: %w\" thrown in grafana/k6.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/common/frame.go:1265 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"93accf6570dcd306ca5e99cc44c393ee3797761b","analyzedAt":"2026-08-15T21:23:27.118Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}