arsenic icon indicating copy to clipboard operation
arsenic copied to clipboard

Add "element click intercepted" error

Open eternal-sorrow opened this issue 4 years ago • 2 comments

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.

eternal-sorrow avatar Dec 15 '20 13:12 eternal-sorrow

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

dimaqq avatar Dec 16 '20 01:12 dimaqq

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

eternal-sorrow avatar Dec 16 '20 04:12 eternal-sorrow