Beispiel #1
0
 public void Login(string email, string password)
 {
     PageFactory.InitElements(webDriver, this);
     T_Email.SendKeys(email);
     T_Password.SendKeys(password);
     B_SignIn.Click();
 }
Beispiel #2
0
        public void CreateNewUser(string firstName, string lastName, string email, Office office, Gender gender)
        {
            PageFactory.InitElements(webDriver, this);

            B_New.Click();

            T_FirstName.SendKeys(firstName);

            PageFactory.InitElements(webDriver, this);

            T_LastName.SendKeys(lastName);
            T_Email.SendKeys(email);

            data = office.ToString("g").Replace("_", " ");
            DL_Office.Click();
            data = gender.ToString("g").Replace("_", " ");
            RB_Gender.Click();

            B_Create.Click();
        }