public static WebDriverFactory GetWebDriverType(BrowserType browserType, WebDriverExecutionType executionType) { var targetWebDriverType = GetAll().FirstOrDefault(wd => wd.BrowserType == browserType && wd.ExecutionType == executionType); Assert.IsNotNull(targetWebDriverType, $"WebDriverType with properties BrowserType='{browserType}' ExecutionType={executionType} not found"); return(targetWebDriverType); }
protected WebDriverType(int value, BrowserType browserType, WebDriverExecutionType executionType) : base(value: value, displayName: browserType + executionType.ToString()) { BrowserType = browserType; ExecutionType = executionType; }