public static void PrepareUnitTestDataStore() { try { WebDriverFactory.Container.Resolve <StartSeChromeCommand>(); } catch { CommonCmdletBase.ModuleAlreadyLoaded = false; } if (!CommonCmdletBase.ModuleAlreadyLoaded) { WebDriverFactory.AutofacModule = new FakeWebDriverModule(); WebDriverFactory.Init(); CommonCmdletBase.ModuleAlreadyLoaded = true; } CurrentData.InitUnconditional(); PSCmdletBase.UnitTestMode = true; if (0 < UnitTestOutput.Count) { UnitTestOutput.Clear(); } IWebDriver webDriver = new FakeWebDriver(); CurrentData.CurrentWebDriver = webDriver; }
public static void PrepareUnitTestDataStore() { try { WebDriverFactory.Container.Resolve<StartSeChromeCommand>(); } catch { CommonCmdletBase.ModuleAlreadyLoaded = false; } if (!CommonCmdletBase.ModuleAlreadyLoaded) { WebDriverFactory.AutofacModule = new FakeWebDriverModule(); WebDriverFactory.Init(); CommonCmdletBase.ModuleAlreadyLoaded = true; } CurrentData.InitUnconditional(); PSCmdletBase.UnitTestMode = true; if (0 < PSTestLib.UnitTestOutput.Count) { PSTestLib.UnitTestOutput.Clear(); } IWebDriver webDriver = new FakeWebDriver(); CurrentData.CurrentWebDriver = webDriver; }
// public FakeNavigation() // { // } public FakeNavigation(FakeWebDriver driver) { this.Driver = driver; }
// public FakeNavigation() // { // } public FakeNavigation(FakeWebDriver driver) { Driver = driver; }