From eb163722e5a64b07fc8f67390fb4119a1d6443e0 Mon Sep 17 00:00:00 2001 From: Ankur Date: Tue, 14 Jan 2025 10:11:23 +0000 Subject: [PATCH] Update js/modules/k6/browser/common/execution_context.go Co-authored-by: Ivan <2103732+codebien@users.noreply.github.com> --- js/modules/k6/browser/common/execution_context.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/modules/k6/browser/common/execution_context.go b/js/modules/k6/browser/common/execution_context.go index f82270811cb..f0afe86708c 100644 --- a/js/modules/k6/browser/common/execution_context.go +++ b/js/modules/k6/browser/common/execution_context.go @@ -116,7 +116,9 @@ func (e *ExecutionContext) adoptBackendNodeID(backendNodeID cdp.BackendNodeID) ( // This can occur due to race conditions between trying to click on an element // and chrome moving on (e.g. navigating). if remoteObj == nil { - return nil, fmt.Errorf("the page may have navigated away or the element is now missing: %w", err) + return nil, fmt.Errorf(`the page may have navigated away or the element is + now missing. It might happen when k6 and/or Chrome are overloaded. You + might need to increase the compute resources: %w`, err) } return NewJSHandle(e.ctx, e.session, e, e.frame, remoteObj, e.logger).AsElement(), nil