Refactoring to set Selenium as a direct dependency plus cleaning some generics, deprecations, ...