示例#1
0
        public void ValidateFieldMobileNumber()
        {
            WaitForPageUntilElementIsVisible(By.Id("home-initial-popup-candidate"), 10);
            BtnFindJobs.Click();
            IList <IWebElement> AllInput = driver.FindElements(By.TagName("input"));

            foreach (var item in AllInput)
            {
                if ("Ingresa tu número de móvil".Equals(item.GetAttribute("placeholder")))
                {
                    item.SendKeys("1234567890");
                    break;
                }
            }
            IList <IWebElement> AllSpan = driver.FindElements(By.TagName("span"));

            foreach (var item in AllSpan)
            {
                if ("\r\n                        Enviar\r\n                      ".Equals(item.GetAttribute("innerHTML")))
                {
                    item.Click();
                    Assert.AreEqual("\r\n                        Reenviar\r\n                      ", "\r\n                        Reenviar\r\n                      ");
                    break;
                }
            }
        }
示例#2
0
        public void ValidateEnvironment()
        {
            WaitForPageUntilElementIsVisible(By.Id("home-initial-popup-candidate"), 10);
            BtnFindJobs.Click();
            IWebElement element = driver.FindElement(By.Id("first-fold"));

            ((IJavaScriptExecutor)driver).ExecuteScript("arguments[0].scrollIntoView(true);", element);
            IList <IWebElement> AllSpan = driver.FindElements(By.TagName("span"));

            foreach (var item in AllSpan)
            {
                if ("Ventas al detal".Equals(item.GetAttribute("innerHTML")))
                {
                    item.Click();
                }
                if ("Restaurantes y Hospitalidad".Equals(item.GetAttribute("innerHTML")))
                {
                    item.Click();
                }
                if ("Transporte".Equals(item.GetAttribute("innerHTML")))
                {
                    item.Click();
                }
                if ("Ventas y Servicio al Cliente".Equals(item.GetAttribute("innerHTML")))
                {
                    item.Click();
                }
                if ("Administración y Oficinas".Equals(item.GetAttribute("innerHTML")))
                {
                    item.Click();
                    break;
                }
            }
        }
示例#3
0
        public void ValidatePlayStore()
        {
            WaitForPageUntilElementIsVisible(By.Id("home-initial-popup-candidate"), 10);
            BtnFindJobs.Click();
            LinkPlatStore.Click();
            String Actualtext = driver.FindElement(By.ClassName("AHFaub")).GetAttribute("itemprop");

            Assert.AreEqual(Actualtext, "name");
        }
示例#4
0
        public void ValidateAppStore()
        {
            WaitForPageUntilElementIsVisible(By.Id("home-initial-popup-candidate"), 10);
            BtnFindJobs.Click();
            LinkAppStore.Click();
            String Actualtext = driver.FindElement(By.Id("ember589")).GetAttribute("class");

            Assert.AreEqual(Actualtext, "product-hero__artwork we-artwork--fullwidth we-artwork--ios-app-icon we-artwork ember-view");
        }
示例#5
0
        public void StillHaveQuestion()
        {
            WaitForPageUntilElementIsVisible(By.Id("home-initial-popup-candidate"), 10);
            BtnFindJobs.Click();
            IWebElement element = driver.FindElement(By.Name("user_name"));

            ((IJavaScriptExecutor)driver).ExecuteScript("arguments[0].scrollIntoView(true);", element);
            FieldNameQuestion.Clear();
            FieldNameQuestion.SendKeys("user numer 1");
            FieldEmailQuestion.Clear();
            FieldEmailQuestion.SendKeys("*****@*****.**");
            FieldSubjectQuestion.Clear();
            FieldSubjectQuestion.SendKeys("este mensaje es una prueba de automatizacion");
            BtnSendQuestion.Click();
        }