{"record":{"id":"af8f481b877b8726","repo":"grafana/k6","slug":"double-clicking-on-q-w-af8f48","errorCode":null,"errorMessage":"double clicking on %q: %w","messagePattern":"double clicking on %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/common/locator.go","lineNumber":140,"sourceCode":"func (l *Locator) ContentFrame() *FrameLocator {\n\treturn NewFrameLocator(l.ctx, l.selector, l.frame, l.log)\n}\n\n// Count APIs do not wait for the element to be present. It also does not set\n// strict to true, allowing it to return the total number of elements matching\n// the selector.\nfunc (l *Locator) Count() (int, error) {\n\treturn l.frame.count(l.selector)\n}\n\n// Dblclick double clicks on an element using locator's selector with strict mode on.\nfunc (l *Locator) Dblclick(opts *FrameDblclickOptions) error {\n\tl.log.Debugf(\"Locator:Dblclick\", \"fid:%s furl:%q sel:%q opts:%+v\", l.frame.ID(), l.frame.URL(), l.selector, opts)\n\n\topts.Strict = true\n\topts.retry = true\n\tif err := l.frame.dblclick(l.selector, opts); err != nil {\n\t\treturn fmt.Errorf(\"double clicking on %q: %w\", l.selector, err)\n\t}\n\n\tapplySlowMo(l.ctx)\n\n\treturn nil\n}\n\nfunc (l *Locator) Evaluate(pageFunc string, args ...any) (any, error) {\n\treturn l.frame.evaluateWithSelector(l.selector, pageFunc, args...)\n}\n\nfunc (l *Locator) EvaluateHandle(pageFunc string, args ...any) (JSHandleAPI, error) {\n\treturn l.frame.evaluateHandleWithSelector(l.selector, pageFunc, args...)\n}\n\n// SetChecked sets the checked state of the element using locator's selector\n// with strict mode on.\nfunc (l *Locator) SetChecked(checked bool, opts *FrameCheckOptions) error {","sourceCodeStart":122,"sourceCodeEnd":158,"githubUrl":"https://github.com/grafana/k6/blob/01ffac6f245854c1b8adc6a69857c76a15f90022/internal/js/modules/k6/browser/common/locator.go#L122-L158","documentation":"Returned by Locator.Dblclick when the double-click action on the element matched by the locator fails; strict mode is on, so common causes are zero or multiple matching elements, the element being invisible, or the frame being detached. The input at fault is the locator's selector.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/common/locator.go:140 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Make the selector resolve to exactly one visible element","Increase the timeout option to give the element time to become actionable","Retry the interaction after waiting for the element's stability (visibility, enabled state)"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ffac6f245854c1b8adc6a69857c76a15f90022","analyzedAt":"2026-08-18T03:05:52.393Z","contentChangedAt":"2026-08-18T03:05:52.393Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}