Description of FakeWebDriver.
Inheritance: IWebDriver
Example #1
0
        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;
        }
Example #2
0
        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;
        }
Example #3
0
//        public FakeNavigation()
//        {
//        }

        public FakeNavigation(FakeWebDriver driver)
        {
            this.Driver = driver;
        }
Example #4
0
//        public FakeNavigation()
//        {
//        }

        public FakeNavigation(FakeWebDriver driver)
        {
            Driver = driver;
        }