{"record":{"id":"fcdf4561542f638d","repo":"grafana/k6","slug":"clicking-on-q-w","errorCode":null,"errorMessage":"clicking on %q: %w","messagePattern":"clicking on %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/common/frame.go","lineNumber":617,"sourceCode":"\n// ChildFrames returns a list of child frames.\nfunc (f *Frame) ChildFrames() []*Frame {\n\tf.childFramesMu.RLock()\n\tdefer f.childFramesMu.RUnlock()\n\n\tl := make([]*Frame, 0, len(f.childFrames))\n\tfor child := range f.childFrames {\n\t\tl = append(l, child)\n\t}\n\treturn l\n}\n\n// Click clicks the first element found that matches selector.\nfunc (f *Frame) Click(selector string, opts *FrameClickOptions) error {\n\tf.log.Debugf(\"Frame:Click\", \"fid:%s furl:%q sel:%q\", f.ID(), f.URL(), selector)\n\n\tif err := f.click(selector, opts); err != nil {\n\t\treturn fmt.Errorf(\"clicking on %q: %w\", selector, err)\n\t}\n\n\tapplySlowMo(f.ctx)\n\n\treturn nil\n}\n\nfunc (f *Frame) click(selector string, opts *FrameClickOptions) error {\n\tclick := func(apiCtx context.Context, handle *ElementHandle, p *Position) (any, error) {\n\t\treturn nil, handle.click(p, opts.ToMouseClickOptions())\n\t}\n\tact := f.newPointerAction(\n\t\tselector, DOMElementStateAttached, opts.Strict, click, &opts.ElementHandleBasePointerOptions,\n\t)\n\tif _, err := call(f.ctx, act, opts.Timeout); err != nil {\n\t\treturn errorFromDOMError(err)\n\t}\n","sourceCodeStart":599,"sourceCodeEnd":635,"githubUrl":"https://github.com/grafana/k6/blob/3fcf5388d78cb382f0c0d42ec556a06bfd1b8dee/internal/js/modules/k6/browser/common/frame.go#L599-L635","documentation":"Returned by Frame.Click after the internal click pipeline (resolve selector, actionability checks, mouse click) fails. The wrap only adds selector context; the wrapped error (via errorFromDOMError) holds the real cause: timeout waiting for visibility/enabled, hit-target interception, or element detachment.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/common/frame.go:609 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Increase the timeout option","Wait for the element to be visible and stable (waitForSelector)","Use force:true to bypass actionability checks when appropriate","Ensure no overlay covers the click point"],"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"}