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(); }
public bool Auth(string login, bool isPhone) { LoginButton.Click(); if (isPhone) { PhoneTab.Click(); } LoginTextBox.SendKeys(login); PassTextBox.SendKeys(TestDataResource.Password); SubmitButton.Click(); return(true); }