Exemple #1
0
 public void CreateNewUser(string name, string email, string password)
 {
     CreateNewUserButton.ClickElement();
     EnterNameText.EnterText(name + DateTime.Now.ToString("yyyyMMddHHmmssfff"));
     EnterSurNameText.EnterText(name);
     EnterEmailText.EnterText(email + DateTime.Now.ToString("yyyyMMddHHmmssfff") + "@test.com");
     EnterUserNameText.EnterText(name + DateTime.Now.ToString("yyyyMMddHHmmssfff"));
     SelectPassword.ClickElement();
     EnterPasswordText.EnterText(password);
     RepetPasswordText.EnterText(password);
     SaveButton.ClickElement();
 }
Exemple #2
0
 /// <summary>
 /// Multithreading Login
 /// </summary>
 private void GoogleButton_Click()
 {
     GoogleButton.Invoke(new Action(() => GoogleButton.BackColor = Color.Transparent));
     if (userCreator.GoogleLogin())
     {
         GoogleButton.Invoke(new Action(() => GoogleButton.BackColor             = Color.LightGreen));
         CreateNewUserButton.Invoke(new Action(() => CreateNewUserButton.Enabled = true));
         CalendarsBox.Invoke(new Action(() => CalendarsBox.Enabled     = true));
         NewCalendarBox.Invoke(new Action(() => NewCalendarBox.Enabled = true));
     }
     else
     {
         GoogleButton.Invoke(new Action(() => GoogleButton.BackColor = Color.OrangeRed));
     }
 }