by Viktoriano
The most known and possible solution for such cases is creating a custom WebDriver manager based on the Factory design pattern. There are lots of different implementations on GitHub and you can easily Google them, but today, I want to share one of the latest experiments that I did.