[java] remove references to invalid errors#10209
Conversation
b979b1e to
f229bc7
Compare
diemol
left a comment
There was a problem hiding this comment.
Could you please check the conflicts, @titusfortner?
a875592 to
ea30ac0
Compare
ea30ac0 to
4ec8209
Compare
|
Kudos, SonarCloud Quality Gate passed!
|
|
Hi, we upgraded recently to Selenium 4.1.3 in a project which uses Selenium API to build its API, and I was using |
|
Likewise for ElementNotSelectableException. Could there be a more visible reference to this change created somewhere so that devs know to use ElementNotInteractableException instead of these classes going forward? Otherwise they will end up here to answer the question as to what happened to these exception classes. |
Took me a bit of time to spot this PR for the change, ideally I would have preferred seeing it directly in the changelog. |
|
It is in the changelog https://github.com/SeleniumHQ/selenium/blob/trunk/java/CHANGELOG#L38 However, yes, this was a mistake to have released this in a patch release. Apologies and we will try to avoid this in the future. |
|
Well, we're not doing SemVer, so we're not making promises about what will happen in a patch release vs a minor release. That being said, I *did say that it probably had unintended consequences I couldn't see right off. It would be nice if we had tests for this. @surli what was the context for the errors you saw? Was it via the Grid? I don't see where the Java code itself was actually using those errors. |
Indeed, now you could have maybe just marked it as deprecated first? I think I remember some API being deprecated before their removal in selenium, but maybe I'm wrong.
So maybe I haven't been clear, but it wasn't a bug in Selenium itself, but in my own project which build an API on top of it, see the commit where I fixed it: xwiki-contrib/application-changerequest@5373b6a |
|
Yes, you're completely correct, these should have been marked as deprecated before getting removed. |
Remove references to removed selenium exceptions SeleniumHQ/selenium#10209
* Update to Selenium 4.3 Remove references to removed selenium exceptions SeleniumHQ/selenium#10209








I ran across a reference to an invalid error in something else I was working on and realized the ErrorCodec list is out of date with current w3c errors. I think these errors are getting used by the grid? I don't see references to them in the code base otherwise.
I'm not sure what is needed for backwards compatibility, or why the invalid ones aren't causing problems, and why the ShadowRootException not being on this list isn't an issue, and what tests we're missing for these one way or another.
This would all be much easier if we could remove JWP support like we'd originally planned.
This PR will run the Java tests and I'll see if there's anything important this breaks (hopefully). Otherwise let me know if I've gotten too delete happy.