public void CheckSuccessfulChangePassword()
        {
            var accountSettingsInPage = new AccountSettingsInPage(_webDriver);
            var singInPage            = new SingInPage(_webDriver);

            accountSettingsInPage.GoToSingInPage();
            accountSettingsInPage.ClickEditPassword();
            Thread.Sleep(1000);
            accountSettingsInPage
            .SetPassword("QwE147AsD@--")
            .SetNewPassword("QwE147AsD@-")
            .SetReTypeNewPassword("QwE147AsD@-");
            accountSettingsInPage.ClickSaveChanges();
            Thread.Sleep(1000);
            accountSettingsInPage.ClickLogout();
            singInPage.GoToSingInPage()
            .SetEmail("*****@*****.**")
            .SetPassword("QwE147AsD@-")
            .ClickSingUp();
            Thread.Sleep(3000);

            var actualMessage = _webDriver.Url;

            Assert.AreEqual("https://newbookmodels.com/join/company?goBackUrl=%2Fexplore", actualMessage);
        }
        public void CheckAuthorizationExceptionMessage()
        {
            var singInPage = new SingInPage(_webDriver);

            singInPage.GoToSingInPage()
            .SetEmail("*****@*****.**")
            .SetPassword("QwE147AsD@-")
            .ClickSingUp();
            Thread.Sleep(1000);

            var actualMessage = singInPage.GetExceptionMessageAccountBlocked();

            Assert.AreEqual("User account is blocked.", actualMessage);
        }
        public void CheckSuccessfulAuthorization()
        {
            var singInPage = new SingInPage(_webDriver);

            singInPage.GoToSingInPage()
            .SetEmail("*****@*****.**")
            .SetPassword("QwE147AsD@-")
            .ClickSingUp();
            Thread.Sleep(1000);

            var actualMessage = _webDriver.Url;

            Assert.AreEqual("https://newbookmodels.com/join/company?goBackUrl=%2Fexplore", actualMessage);
        }
        public void Setup()
        {
            new DriverManager().SetUpDriver(new ChromeConfig(), VersionResolveStrategy.MatchingBrowser);
            _webDriver = new ChromeDriver();
            _webDriver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(7);
            _webDriver.Manage().Timeouts().PageLoad     = TimeSpan.FromSeconds(60);

            var singInPage = new SingInPage(_webDriver);

            singInPage.GoToSingInPage()
            .SetEmail("*****@*****.**")
            .SetPassword("QwE147AsD@--")
            .ClickSingUp();
            Thread.Sleep(3000);
        }