Open Bug 1934530 Opened 2 months ago Updated 2 months ago

When overriding the "obj" parameter in ElementClickInterceptedError the stack of the original error gets lost

Categories

(Remote Protocol :: Agent, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: whimboo, Unassigned)

Details

(Whiteboard: [webdriver:backlog])

As noticed within a review we actually loose the stack of the passed in error if the obj parameter gets overridden when obscuredEl and coords are provided as well and extra checks are performed:

https://searchfox.org/mozilla-central/source/remote/shared/webdriver/Errors.sys.mjs#295

We should make sure that when calling the constructor of the base WebDriverError class to as well re-add the stack.

Severity: -- → S3
Priority: -- → P3
Whiteboard: [webdriver:backlog]
You need to log in before you can comment on or make changes to this bug.