The old Selenium dependency makes user's code throw java.lang.NoSuchMethodError

Description

There are many issue reports where users complain about java.lang.NoSuchMethodError and related dependency conflicts.

Environment

Any

Details

https://gist.github.com/TikhomirovSergey/f008a577cac9b6c92fb1def9a2aa5406

It seems I found the root cause. I is probably because of html-unit driver which is supplied by Selenium.
The possible solution:

  • exclude this artefact