HENNGE / arsenic

Async WebDriver implementation for asyncio and asyncio-compatible frameworks
Other
351 stars 54 forks source link

Add "element click intercepted" error #108

Open eternal-sorrow opened 3 years ago

eternal-sorrow commented 3 years ago

As shown here, there is a "element click intercepted" error possible, but there is no ElementClickIntercepted in arsenic.errors, so this error is raised as UnknownArsenicError. This is as easy as adding ElementClickIntercepted = create("element click intercepted", 35) to errors.py. Or with another value for code, whatever this argument mean.

As a workaround, I added this line to my own module, so that I was able to catch this exact error.

dimaqq commented 3 years ago

PR is most welcome! P.S. how to trigger this error? How to test the change?

eternal-sorrow commented 3 years ago

how to trigger this error?

Element Click command could not be completed because the element receiving the events is obscuring the element that was requested clicked.

Reference