{"record":{"id":"bbbde5abd27b2c5f","repo":"grafana/k6","slug":"navigating-frame-to-q-w","errorCode":null,"errorMessage":"navigating frame to %q: %w","messagePattern":"navigating frame to %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/common/frame.go","lineNumber":1247,"sourceCode":"// Referrer returns the referrer of the frame from the network manager\n// of the frame's session.\n// It's an internal method not to be exposed as a JS API.\nfunc (f *Frame) Referrer() string {\n\tnm := f.manager.page.mainFrameSession.getNetworkManager()\n\treturn nm.extraHTTPHeaders[\"referer\"]\n}\n\n// NavigationTimeout returns the navigation timeout of the frame.\n// It's an internal method not to be exposed as a JS API.\nfunc (f *Frame) NavigationTimeout() time.Duration {\n\treturn f.manager.timeoutSettings.navigationTimeout()\n}\n\n// Goto will navigate the frame to the specified URL and return a HTTP response object.\nfunc (f *Frame) Goto(url string, opts *FrameGotoOptions) (*Response, error) {\n\tresp, err := f.manager.NavigateFrame(f, url, opts)\n\tif err != nil {\n\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)","sourceCodeStart":1229,"sourceCodeEnd":1265,"githubUrl":"https://github.com/grafana/k6/blob/93accf6570dcd306ca5e99cc44c393ee3797761b/internal/js/modules/k6/browser/common/frame.go#L1229-L1265","documentation":"Error \"navigating frame to %q: %w\" thrown in grafana/k6.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/common/frame.go:1247 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"}