The method WebdriverFactoryExtensions.GetWebDriver is duplicating some defensive code incorrectly. This is the null/empty check on the selected web driver logic.
Instead it should use the configuration's own method to get the selected config, which has the source of truth for getting the web driver config.
The method
WebdriverFactoryExtensions.GetWebDriveris duplicating some defensive code incorrectly. This is the null/empty check on the selected web driver logic.Instead it should use the configuration's own method to get the selected config, which has the source of truth for getting the web driver config.