public void AuthorizedUserNavigation()
        {
            using (IWebDriver driver = new ChromeDriver())
            {
                WebDriverWait wait            = new WebDriverWait(driver, TimeSpan.FromSeconds(3));
                var           loginPage       = new LoginPage(driver, wait);
                var           conferencesPage = new ConferencesPage(driver, wait);

                loginPage.NavigateTo();
                loginPage.Logoff();
                loginPage.Login(conferencesPage.AdminLogin, conferencesPage.AdminPassword);
                var helloMessageOrRegisterLink = loginPage.HelloMessageOrRegisterLink();
                Assert.Equal($"Hello {conferencesPage.AdminLogin}!", helloMessageOrRegisterLink);
                conferencesPage.EnsurePageLoaded();

                conferencesPage.WaitForPartialViewAndClickParticipatingUsersLink();
                Assert.Equal(ParticipatingUsersTitle, driver.Title);
                driver.Navigate().Back();

                conferencesPage.WaitForPartialViewAndClickCreateConfLink();
                Assert.Equal(CreateTitle, driver.Title);
                driver.Navigate().Back();

                conferencesPage.WaitForPartialViewAndClickDeleteLink();
                Assert.Equal(DeleteTitle, driver.Title);
                driver.Navigate().Back();

                conferencesPage.ClickCarouselNextButton();
                conferencesPage.SignInOnCarousel();
                Assert.Equal(SignUpTitle, driver.Title);
            }
        }
        public void CreateAndDeleteConference()
        {
            using (IWebDriver driver = new ChromeDriver())
            {
                WebDriverWait wait            = new WebDriverWait(driver, TimeSpan.FromSeconds(3));
                var           loginPage       = new LoginPage(driver, wait);
                var           conferencesPage = new ConferencesPage(driver, wait);

                loginPage.NavigateTo();
                loginPage.Logoff();
                loginPage.Login(conferencesPage.AdminLogin, conferencesPage.AdminPassword);
                var helloMessageOrRegisterLink = loginPage.HelloMessageOrRegisterLink();
                Assert.Equal($"Hello {conferencesPage.AdminLogin}!", helloMessageOrRegisterLink);
                conferencesPage.EnsurePageLoaded();

                driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(2);
                var confListBeforeCreateNewConf         = conferencesPage.GetConfList();
                _output.WriteLine($"{confListBeforeCreateNewConf.Count} before");

                conferencesPage.WaitForPartialViewAndClickCreateConfLink();
                conferencesPage.FillCreateConfFormAndSubmit("NameTest", "2020-11-01", "CityTest",
                                                            "StreetTest", "CountyTest");
                conferencesPage.EnsurePageLoaded();

                driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(2);
                var confListAfterCreateNewConf          = conferencesPage.GetConfList();
                _output.WriteLine($"{ confListAfterCreateNewConf.Count} after");

                Assert.Equal(confListBeforeCreateNewConf.Count, confListAfterCreateNewConf.Count - 1);
                Assert.Contains("NameTest", confListAfterCreateNewConf.Last());

                conferencesPage.WaitForPartialViewAndClickDeleteLastLink();
                Assert.Equal(DeleteTitle, driver.Title);

                conferencesPage.DeleteSubmit();
                Assert.Equal(DeleteSuccessTitle, driver.Title);

                conferencesPage.ClickBackToListLink();
                conferencesPage.EnsurePageLoaded();
                var confListAfterDeleteNewConf = conferencesPage.GetConfList();
                Assert.Equal(confListBeforeCreateNewConf.Count, confListAfterDeleteNewConf.Count);
                Assert.DoesNotContain("NameTest", confListAfterDeleteNewConf.Last());
            }
        }
        public void AlreadySignedIn()
        {
            using (IWebDriver driver = new ChromeDriver())
            {
                WebDriverWait wait            = new WebDriverWait(driver, TimeSpan.FromSeconds(3));
                var           loginPage       = new LoginPage(driver, wait);
                var           conferencesPage = new ConferencesPage(driver, wait);

                loginPage.NavigateTo();
                loginPage.Logoff();
                loginPage.Login(conferencesPage.AdminLogin, conferencesPage.AdminPassword);
                var helloMessageOrRegisterLink = loginPage.HelloMessageOrRegisterLink();
                Assert.Equal($"Hello {conferencesPage.AdminLogin}!", helloMessageOrRegisterLink);
                conferencesPage.EnsurePageLoaded();

                conferencesPage.WaitForPartialViewAndClickSignUpLink();
                conferencesPage.SignUpSubmit();

                Assert.Equal(AlreadySignedUp, driver.Title);
            }
        }