Пример #1
0
 private void SetNecessaryCheckBoxAndContinue(bool yesNo = true)
 {
     try
     {  // select subscribe
         Pages.RegisterPage.SelectNewsLetter(yesNo);
         // agree with the terms
         Pages.RegisterPage.SetCheckAgreeTerms();
         // click button continue
         Pages.RegisterPage.ClickButtonContinue();
     }
     catch (Exception exception)
     {
         LoggingLog.WritingLogging(null, exception);
     }
 }
Пример #2
0
 private void FillFieldsUserData(User user)
 {
     try
     {
         Pages.RegisterPage.SetFirstName(user.firstName);
         Pages.RegisterPage.SetLastName(user.lastName);
         Pages.RegisterPage.SetEmail(user.email);
         Pages.RegisterPage.SetTelephone(user.telephone);
         Pages.RegisterPage.SetFax(user.fax);
         Pages.RegisterPage.SetCompany(user.company);
         Pages.RegisterPage.SetAddress1(user.address_1);
         Pages.RegisterPage.SetAddress2(user.address_2);
         Pages.RegisterPage.SetCity(user.city);
         Pages.RegisterPage.SetPostCode(user.postCode);
         Pages.RegisterPage.SetCountry(user.country);
         Pages.RegisterPage.SetRegion(user.region);
         Pages.RegisterPage.SetPassword(user.password);
         Pages.RegisterPage.SetConfirmPassword(user.password);
     }
     catch (Exception exception)
     {
         LoggingLog.WritingLogging(null, exception);
     }
 }
Пример #3
0
 public void Log(string message)
 {
     LoggingLog.WritingLogging(message, null);
 }