Exemplo n.º 1
0
 public static void RechazarOfrecimientos(YKNChromeDriver browser)
 {
     browser.ClickIfDisplayedAndWait(By.XPath("//[contains(text(), 'Close')]"), 3, 5);
     browser.ClickIfDisplayedAndWait(By.XPath("//button[contains(text(), 'Not Now')]"), 3, 5);
     browser.ClickIfDisplayedAndWait(By.XPath("//[contains(text(), 'Go to the App')]"), 3, 5);
     browser.ClickIfDisplayedAndWait(By.XPath("//button[contains(text(), 'Cancel')]"), 3, 5);
 }
Exemplo n.º 2
0
        private void IngresarUsuarioYContraseniaYLoguear()
        {
            var userNameInput = _browser.FindElement(By.CssSelector("input[aria-label='Phone number, username, or email']"));

            userNameInput.SendKeys(_usuario.NombreDeUsuario);

            var passwordInput = _browser.FindElement(By.CssSelector("input[aria-label=\"Password\"]"));

            passwordInput.SendKeys(_usuario.Contrasenia);

            _browser.ClickIfDisplayedAndWait(By.CssSelector("button[type=\"submit\"]"), 2, 3);
        }