public TestMethodManager(TestContext testContext, IConfiguration appConfiguration, ILoggingUtility loggingUtility) { TestContext = testContext; AppConfiguration = appConfiguration; LoggingUtility = loggingUtility; TestMethods = new ConcurrentDictionary <string, ITestMethodBase>(); }
protected TestMethodBase(ILoggingUtility loggingUtility, IConfigurationReader configurationReader, string testMethod) { IsInitialised = false; LoggingUtility = loggingUtility; ConfigurationReader = configurationReader; TestMethod = testMethod; }
public WebDriverService(ILoggingUtility loggingUtility, IFactory <IDriverCleanup> driverCleanup, IFactory <IWebDriver> webDriverFactory, IConfigurationReader configurationReader) { DriverCleanup = driverCleanup; WebDriverFactory = webDriverFactory; ConfigurationReader = configurationReader; LoggingUtility = loggingUtility; }
/// <summary> /// Constructor of Base Page /// </summary> protected BasePageContainer(ITestMethodManager testMethodManager, TestContext testContext) { var webTestMethodManager = (WebTestMethodManager)testMethodManager; var webTestMethod = (WebTestMethod)webTestMethodManager.TryGetValue(testContext.TestName); _driver = webTestMethod?.WebDriver; _configurationReader = webTestMethod?.ConfigurationReader; _loggingUtility = webTestMethodManager.LoggingUtility; }
/// <summary> /// Constructor of Base Page /// </summary> protected BasePage(string testMethod) { var webTestMethodManager = WebTestManager.Instance().WebTestMethodManager; var webTestMethod = (WebTestMethod)webTestMethodManager.TryGetValue(testMethod); _driver = webTestMethod?.WebDriver; _configurationReader = webTestMethod?.ConfigurationReader; _loggingUtility = webTestMethodManager.LoggingUtility; }
//public static void Wait(this IWebDriver driver, Func<IWebDriver, ReadOnlyCollection<IWebElement>> func) //{ // var testManager = WebTestManager.Instance().WebTestMethodManager; // testManager.WebDriverService.TryGetValue(testManager.TestContext.TestName, out WebDriverWait webDriverWait); // webDriverWait.Until(func); //} public static void CloseAlert(this IWebDriver driver, ILoggingUtility loggingUtility) { try { var alert = driver.SwitchTo().Alert(); alert.Accept(); } catch (NoAlertPresentException e) { loggingUtility.Info("No Alert Present" + e.Message); } }
/// <summary> /// Constructor of Base Page /// </summary> protected BasePage(IWebDriver driver, IConfigurationReader configurationReader, ILoggingUtility loggingUtility) { _driver = driver; _configurationReader = configurationReader; _loggingUtility = loggingUtility; }
public LinuxOsProcess(ILoggingUtility loggingUtility) { _loggingUtility = loggingUtility; }
public BrowserCleanupFactory(IConfigurationReader configurationReader, ILoggingUtility loggingUtility, IProcess osProcess) { _configurationReader = configurationReader; _loggingUtility = loggingUtility; _osProcess = osProcess; }
public WebTestMethodManager(ILoggingUtility loggingUtility, TestContext testContext, IConfiguration appConfiguration, IFactory <IDriverCleanup> driverCleanup, IWebDriverService webDriverService) : base(testContext, appConfiguration, loggingUtility) { WebDriverService = webDriverService; LoggingUtility = loggingUtility; DriverCleanup = driverCleanup; }
public WebTestMethod(IFactory <IDriverCleanup> driverCleanup, ILoggingUtility loggingUtility, IConfigurationReader configurationReader, string testMethod) : base(loggingUtility, configurationReader, testMethod) { DriverCleanup = driverCleanup; }
public GoogleSearchPage(IWebDriver driver, IConfigurationReader configurationReader, ILoggingUtility loggingUtility) : base(driver, configurationReader, loggingUtility) { }
public static void CloseAlert(this IWebDriver driver, ILoggingUtility loggingUtility) { var alert = driver.SwitchTo().Alert(); alert.Accept(); }
public WinOsProcess(ILoggingUtility loggingUtility) { _loggingUtility = loggingUtility; }
public SeleniumGridDriverCleanupFactory(IConfigurationReader configurationReader, ILoggingUtility loggingUtility, IProcess osProcess) { _configurationReader = configurationReader; _loggingUtility = loggingUtility; _osProcess = osProcess; }
public BrowserOptionsFactory(IConfigurationReader configurationReader, ILoggingUtility loggingUtility) { _configurationReader = configurationReader; _loggingUtility = loggingUtility; }
public TestMethodCore(ILoggingUtility loggingUtility, IConfigurationReader configurationReader, string testMethod) : base(loggingUtility, configurationReader, testMethod) { }