Beispiel #1
0
 public void ErrorWhenRegistrationWithEmptyField()
 {
     MakeScreenshotWhenFail(() =>
     {
         Driver.Navigate().GoToUrl("https://doms.by/");
         RegistrationPage rPage = new MainPage(Driver)
                                  .ClickOnAccountField().ClickToRegistrationButton();
         rPage.ClickOnRegistationPersonButton(RegistrationCreator.WithAllProperties());
         Assert.AreEqual("Некорректный адрес электронной почты!", rPage.ErrorEmail.Text);
     });
 }
Beispiel #2
0
 public void ErrorWhenSingInWithEmptyField()
 {
     MakeScreenshotWhenFail(() =>
     {
         Driver.Navigate().GoToUrl("https://www.romwe.com/");
         RegistrationPage rPage = new MainPage(Driver)
                                  .ClickToRegistrationButton();
         rPage.ClickOnSignInButton(RegistrationCreator.WithAllProperties());
         Assert.AreEqual("Please enter your password.", rPage.ErrorEmail.Text);
     });
 }