Beispiel #1
0
        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);
        }
Beispiel #2
0
 protected WebDriverType(int value, BrowserType browserType, WebDriverExecutionType executionType) : base(value: value, displayName: browserType + executionType.ToString())
 {
     BrowserType   = browserType;
     ExecutionType = executionType;
 }