Ejemplo n.º 1
0
        // 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));
        }
Ejemplo n.º 2
0
 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());
 }
Ejemplo n.º 3
0
 public void Setup()
 {
     DSL_Common_For_All.ClickElement(new PAGE_Common_For_Cosmos(DriverFirefox).LinkCosmosNet(), UTIL_Common_For_All.OneSecond());
 }
Ejemplo n.º 4
0
 public void CloseFirefox()
 {
     DSL_Common_For_All.SimpleWait(UTIL_Common_For_All.OneSecond());
     DriverFirefox.Quit();
 }
Ejemplo n.º 5
0
 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);
 }
Ejemplo n.º 6
0
 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());
 }
Ejemplo n.º 7
0
 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);
 }