Skip to content

Commit

Permalink
Update js/modules/k6/browser/common/execution_context.go
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan <[email protected]>
  • Loading branch information
ankur22 and codebien committed Jan 14, 2025
1 parent 45e8b6a commit eb16372
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/modules/k6/browser/common/execution_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb16372

Please sign in to comment.