// Cria um tempo de espera até que a página contenha uma url. public static void WaitPageOnChange(string urlPage) { WebDriverWait wait = new WebDriverWait(DriverFirefox, TimeSpan.FromSeconds(UTIL_Common_For_All.WaitPageOnChange())); wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.UrlContains(urlPage)); }
public void Setup() { DSL_Autenticacao_Do_Usuario.LogIntoCosmos(UTIL_Common_For_All.DefaultEntry()); DSL_Common_For_All.WaitPageOnChange(URL_Cosmos.UrlCosmos); DSL_Common_For_All.SimpleWait(UTIL_Common_For_All.ThreeSeconds()); }
public void Setup() { DSL_Common_For_All.ClickElement(new PAGE_Common_For_Cosmos(DriverFirefox).LinkCosmosNet(), UTIL_Common_For_All.OneSecond()); }
public void CloseFirefox() { DSL_Common_For_All.SimpleWait(UTIL_Common_For_All.OneSecond()); DriverFirefox.Quit(); }
public void LoginSuccess() { DSL_Common_For_All.ToType(VALUE_Common_For_All.DefaultUser, new PAGE_Autenticacao_Do_Usuario(DriverFirefox).InputUsuario()); DSL_Common_For_All.ToType(VALUE_Common_For_All.DefaultPassword, new PAGE_Autenticacao_Do_Usuario(DriverFirefox).InputSenha()); DSL_Common_For_All.ClickElement(new PAGE_Autenticacao_Do_Usuario(DriverFirefox).ButtonEfetuarLogin(), UTIL_Common_For_All.OneSecond()); DSL_Common_For_All.WaitPageOnChange(URL_Cosmos.UrlCosmos); }
public void LogIntoWithoutEntry() { DSL_Common_For_All.ClickElement(new PAGE_Autenticacao_Do_Usuario(DriverFirefox).ButtonEfetuarLogin(), UTIL_Common_For_All.OneSecond()); DSL_Common_For_All.CheckElementDisplayed(new PAGE_Autenticacao_Do_Usuario(DriverFirefox).MessageRequiredUser()); DSL_Common_For_All.CheckElementDisplayed(new PAGE_Autenticacao_Do_Usuario(DriverFirefox).MessageRequiredPassword()); DSL_Common_For_All.CompareOrthographyTextElement(VALUE_Autenticacao_Do_Usuario.MessageRequired, new PAGE_Autenticacao_Do_Usuario(DriverFirefox).MessageRequiredUser()); DSL_Common_For_All.CompareOrthographyTextElement(VALUE_Autenticacao_Do_Usuario.MessageRequired, new PAGE_Autenticacao_Do_Usuario(DriverFirefox).MessageRequiredPassword()); }
public void ClickLinkCosmosNetValidatingUrl() { DSL_Common_For_All.ClickElement(new PAGE_Common_For_Cosmos(DriverFirefox).LinkCosmosNet(), UTIL_Common_For_All.OneSecond()); DSL_Common_For_All.WaitPageOnChange(URL_Logoff.UrlLogoff); }