void runTab() { if (activePhoneTabs.Count > 0 && currentTab == null) { currentTab = activePhoneTabs [phoneTabCounter]; } if (currentTab == null) { } else { if (currentTab != activePhoneTabs[phoneTabCounter]) { currentTab = activePhoneTabs [phoneTabCounter]; } if (currentTab.active == false) { currentTab.gameObject.SetActive(true); currentTab.enablePhoneTab(); } currentTab.onUpdate(); } }
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); }