public void WhenLoginAsSchoolStaff() { BrowserDriverHelper.NavigateToUrl(AppsettingsHelper.SuperAdminWebUrl); LoginPage.TextboxUserName.SendKeys("admin"); LoginPage.TextboxPassword.SendKeys("123456"); LoginPage.ButtonSignIn.Click(); }
public void GivenLogueadoEnElSistema() { driver = new ChromeDriver(); driver.Url = "http://localhost:9000"; helper = new BrowserDriverHelper(driver); helper.GetElementById("textIdentificacion").SendKeys("Secretaria"); helper.GetElementById("textPass").SendKeys("secretaria1*"); helper.GetElementById("btningresar").Click(); System.Threading.Thread.Sleep(5000); }
public void GivenYaLogueadoEnElSistema() { IWebElement inputIdentificacion; IWebElement inputPassword; IWebElement buttonIngresar; chrome = new ChromeDriver(); chrome.Url = "http://localhost:9000"; helper = new BrowserDriverHelper(chrome); inputIdentificacion = helper.GetElementById("textIdentificacion"); inputPassword = helper.GetElementById("textPass"); buttonIngresar = helper.GetElementById("btningresar"); inputIdentificacion.SendKeys("lider"); inputPassword.SendKeys("lider1*"); buttonIngresar.Click(); System.Threading.Thread.Sleep(2000); }
public void ThenLoginSuccessfully() { BrowserDriverHelper.WaitTime(5); }
public static void AfterFeature() { BrowserDriverHelper.CloseBrowserInstance(); }
public static void BeforeFeature() { BrowserDriverHelper.CreateBrowserInstance(); LoginPage = BrowserDriverHelper.InstancePageObject <LoginPage>(); }