Пример #1
0
 public void Registration(string login, bool isPhone)
 {
     Driver.Browser.Url = TestDataResource.MainPageURL + "/register/";
     if (isPhone)
     {
         PhoneTab.Click();
     }
     RegistrationEmailTextBox.SendKeys(login);
     PasswordTextBox.SendKeys(TestDataResource.Password);
     AgreeCheckBox.Click();
     RegistrationButton.Click();
 }
Пример #2
0
        public bool Auth(string login, bool isPhone)
        {
            LoginButton.Click();
            if (isPhone)
            {
                PhoneTab.Click();
            }
            LoginTextBox.SendKeys(login);
            PassTextBox.SendKeys(TestDataResource.Password);
            SubmitButton.Click();

            return(true);
        }