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 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, "Изменение пароля"); }