Set webdriver to be download automatically

2 years ago I had one project and we set something like this

but now how I saw DesiredCapabilities are deprecated , do you guys use another way to do something like that or any solution is to set manually driver ?

Very strange. Selenium mark DesiredCapabilities as deprecated only fo C# around 3 years ago.
However you can use FirefoxOptions and ChromeOptions instead.

2 симпатии

I recommend to simplify your code as much as possible.

  1. Most of your settings are not needed because these are default values in Selenide (like “screenshots=true”)
  2. You don’t really need to set Configuration.browserCapabilities. Selenide also does it by default.


1 симпатия