{"record":{"id":"3432a12f0ed23dfd","repo":"grafana/k6","slug":"evaluating-pointer-action-w","errorCode":null,"errorMessage":"evaluating pointer action: %w","messagePattern":"evaluating pointer action: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/common/element_handle.go","lineNumber":1779,"sourceCode":"\n\t\t// Do a final actionability check to see if element can receive events\n\t\t// at mouse position in question\n\t\tif !opts.Force {\n\t\t\tif ok, err := h.checkHitTargetAt(apiCtx, *p); !ok {\n\t\t\t\treturn nil, fmt.Errorf(\"checking hit target: %w\", err)\n\t\t\t}\n\t\t}\n\t\t// Are we only \"trialing\" the action but not actually performing\n\t\t// it (ie. running the actionability checks).\n\t\tif opts.Trial {\n\t\t\treturn nil, nil //nolint:nilnil\n\t\t}\n\n\t\tb := NewBarrier()\n\t\th.frame.manager.addBarrier(b)\n\t\tdefer h.frame.manager.removeBarrier(b)\n\t\tif res, err = fn(apiCtx, h, p); err != nil {\n\t\t\treturn nil, fmt.Errorf(\"evaluating pointer action: %w\", err)\n\t\t}\n\t\t// Do we need to wait for navigation to happen\n\t\tif !opts.NoWaitAfter {\n\t\t\tif err = b.Wait(apiCtx); err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"waiting for navigation: %w\", err)\n\t\t\t}\n\t\t}\n\n\t\treturn res, nil\n\t}\n\n\treturn func(apiCtx context.Context, resultCh chan any, errCh chan error) {\n\t\tif res, err := retryPointerAction(apiCtx, pointerFn, opts); err != nil {\n\t\t\tselect {\n\t\t\tcase <-apiCtx.Done():\n\t\t\tcase errCh <- err:\n\t\t\t}\n\t\t} else {","sourceCodeStart":1761,"sourceCodeEnd":1797,"githubUrl":"https://github.com/grafana/k6/blob/3fcf5388d78cb382f0c0d42ec556a06bfd1b8dee/internal/js/modules/k6/browser/common/element_handle.go#L1761-L1797","documentation":"Returned inside ElementHandle's pointer-action pipeline when the actual action function fn(apiCtx, h, p) fails after all actionability checks passed and a barrier was installed. The wrap distinguishes 'the performed operation failed' from check failures; the wrapped error carries the CDP or timeout cause.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/common/element_handle.go:1775 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error for the underlying CDP or timeout failure","Increase the action timeout","Ensure the page is stable (no concurrent navigation) during the action"],"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"}