Пример #1
0
        public void ForgetPasswordNavigation()
        {
            ap_POM = new AutorizePage_POM(chrome);
            ForgotPassword_POM fp_POM = new ForgotPassword_POM(chrome);

            ap_POM.ClickForgetPassword();
            string navigatedUrl = fp_POM.GetPageTitle();

            Assert.AreEqual("Изменение пароля", navigatedUrl);
        }
        public void OnSetUp()
        {
            ChromeOptions options = new ChromeOptions();

            options.AddArguments("--lang=ru");
            chrome = new ChromeDriver(@"D:\Selenium\chromedriver_win32", options);
            chrome.Navigate().GoToUrl("https://hotline.ua/reminder/");
            chrome.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5);
            fp_POM = new ForgotPassword_POM(chrome);
        }
Пример #3
0
        public void ForgetPasswordNavigationThroughtErrorMessage()
        {
            ap_POM = new AutorizePage_POM(chrome);
            ForgotPassword_POM fp_POM = new ForgotPassword_POM(chrome);

            ap_POM.FillLoginField("*****@*****.**").FillPassField("4f4f4f4f4f4").ClickLoginButton();
            ap_POM.ClickErrorForgetPassword();
            string navigatedUrl = fp_POM.GetPageTitle();

            Assert.AreEqual(navigatedUrl, "Изменение пароля");
        }