public void Login() { WaitForPageUntilElementIsVisible(By.Id("home-initial-popup-candidate"), 10); BtnEmployers.Click(); Thread.Sleep(1000); IList <IWebElement> AllA = driver.FindElements(By.TagName("a")); foreach (var item in AllA) { if ("I already have an account".Equals(item.GetAttribute("innerHTML"))) { item.Click(); break; } } FieldEmail.Clear(); FieldEmail.SendKeys("*****@*****.**"); FieldPassword.Clear(); FieldPassword.SendKeys("homehome"); WaitForPageUntilElementIsVisible(By.Id("create"), 10); BtnLogIn.Click(); IList <IWebElement> AllDiv = driver.FindElements(By.TagName("div")); foreach (var item in AllDiv) { if ("Home Home".Equals(item.GetAttribute("innerHTML"))) { Assert.AreEqual("home home", item.GetAttribute("innerHTML")); break; } } }
public LogIn() { proxy = new AgensyServiceClient(); ButtonLogin = new BtnLogIn(this); ButtonRegistr = new BtnRegistration(this); }
private async void ActionImage() { await Task.WhenAll( fEmail.TranslateTo(0, 100, 50, Easing.SpringIn), fPassword.TranslateTo(0, 100, 50, Easing.SpringIn), BtnLogIn.TranslateTo(0, 100, 50, Easing.SpringIn), LbForgot.TranslateTo(0, 100, 50, Easing.SpringIn), LbRegister.TranslateTo(0, 100, 50, Easing.SpringIn), Img_Logo.TranslateTo(0, 100, 50, Easing.SpringIn) ); Img_Logo.IsVisible = true; await Task.WhenAll( Img_Logo.FadeTo(1, 2500), Img_Logo.TranslateTo(0, 0, 500, Easing.Linear) ); await Task.Delay(200); fEmail.IsVisible = true; fPassword.IsVisible = true; BtnLogIn.IsVisible = true; LbForgot.IsVisible = true; LbRegister.IsVisible = true; await Task.WhenAll( fEmail.TranslateTo(0, 0, 500, Easing.Linear), fPassword.TranslateTo(0, 0, 500, Easing.Linear), BtnLogIn.TranslateTo(0, 0, 500, Easing.Linear), LbForgot.TranslateTo(0, 0, 500, Easing.Linear), LbRegister.TranslateTo(0, 0, 500, Easing.Linear) ); }
public void BringEverythingToFront() { PicBoxTopBar.BringToFront(); BtnAddMeme.BringToFront(); PicBoxUserIcon.BringToFront(); BtnLogIn.BringToFront(); PicBoxNightMode.BringToFront(); }
//se intento automatizar la opcion de crear un cuenta, pero no se puede realizar //el flujo ya que tiene opcion de captcha y este funciona para verificar que eres //una persona y no una maquina public void CreateAccount() { WaitForPageUntilElementIsVisible(By.Id("home-initial-popup-candidate"), 10); BtnEmployers.Click(); Thread.Sleep(1000); FieldCompanyName.SendKeys("Test 1"); FieldFullName.SendKeys("Test"); FieldEmail.SendKeys("*****@*****.**"); FieldPasswordCreateAccount.SendKeys("1234567890"); driver.SwitchTo().Frame(2); Debug.Write(driver.PageSource); Captcha.Click(); driver.SwitchTo().DefaultContent(); BtnLogIn.Click(); }