{"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":1255,"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":1237,"sourceCodeEnd":1273,"githubUrl":"https://github.com/grafana/k6/blob/3fcf5388d78cb382f0c0d42ec556a06bfd1b8dee/internal/js/modules/k6/browser/common/frame.go#L1237-L1273","documentation":"Returned by Frame.Goto when frame navigation to the URL fails at the CDP level (Page.navigate error) or during response resolution. The wrap names the target URL; the wrapped error carries the CDP cause — invalid URL, net error, crashed target, or navigation timeout.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/common/frame.go:1247 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the URL is well-formed and reachable","Increase the navigation timeout option","Check network conditions and any proxy requirements","Ensure the page/frame is not already closing"],"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"}