public void GetCreatesNewDriver()
 {
     if (IsDebugEnabled)
     {
         Logger.Debug($"Starting {TestContext.CurrentContext.Test.Name}");
     }
     DriverOne = WebDriverManager.Get();
     DriverOne.Should().NotBeNull();
 }
        public void QuitHasClosedTheWebDriver()
        {
            if (IsDebugEnabled)
            {
                Logger.Debug($"Starting {TestContext.CurrentContext.Test.Name}");
            }
            DriverOne = WebDriverManager.Get();
            WebDriverManager.Quit();
            Action act = () => DriverOne.Manage().Window.FullScreen();

            act.Should().ThrowExactly <WebDriverException>();
        }
        public void QuitOnlyQuitsTheSingletonWebDriver()
        {
            if (IsDebugEnabled)
            {
                Logger.Debug($"Starting {TestContext.CurrentContext.Test.Name}");
            }
            DriverOne = WebDriverManager.Get();
            DriverTwo = WebDriverManager.GetAdditionalWebDriver();

            WebDriverManager.Quit();

            Action actOne = () => DriverOne.Manage().Window.FullScreen();

            actOne.Should().ThrowExactly <WebDriverException>();

            Action actTwo = () => DriverTwo.Manage().Window.FullScreen();

            actTwo.Should().NotThrow <WebDriverException>();
        }