// TO create instance of class public static IWebDriver GetInstanceOfAlphaPointWebDriver() { if (instanceOfAlphaPointWebDriver == null) { instanceOfAlphaPointWebDriver = new AlphaPointWebDriver(); } return(instanceOfAlphaPointWebDriver.driver); }
// This method destroys the instance public static void DestroyInstanceOfAlphaPointWebDriver(IWebDriver driver) { if (instanceOfAlphaPointWebDriver != null) { GenericUtils.CleanUp(driver); instanceOfAlphaPointWebDriver = null; } }
public TestBase(ITestOutputHelper output) { var logRepository = LogManager.GetRepository(Assembly.GetEntryAssembly()); var fileinfo = new FileInfo(Const.LogFileName); if (fileinfo.Exists) { XmlConfigurator.ConfigureAndWatch(logRepository, fileinfo); } logger = LogManager.GetLogger(this.GetType()); data = ConfigManager.Instance; driver = AlphaPointWebDriver.GetInstanceOfAlphaPointWebDriver(); TestProgressLogger = new ProgressLogger(output, logger, driver); }
static ConfigManager() { apwd = new AlphaPointWebDriver(); }
public GenericUtils(ProgressLogger logger) { this.logger = logger; data = ConfigManager.Instance; driver = AlphaPointWebDriver.GetInstanceOfAlphaPointWebDriver(); }