Skip to content

Commit

Permalink
Add a comment on the error
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur22 committed Jan 13, 2025
1 parent dad8d5f commit 7fbcd21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/modules/k6/browser/common/execution_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ func (e *ExecutionContext) adoptBackendNodeID(backendNodeID cdp.BackendNodeID) (
return nil, fmt.Errorf("resolving DOM node: %w", err)
}

// 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)
}
Expand Down

0 comments on commit 7fbcd21

Please sign in to comment.