コード例 #1
0
ファイル: Helper.cs プロジェクト: hgomezcoron/TestMerlin
        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;
                }
            }
        }
コード例 #2
0
        public LogIn()
        {
            proxy = new AgensyServiceClient();

            ButtonLogin   = new BtnLogIn(this);
            ButtonRegistr = new BtnRegistration(this);
        }
コード例 #3
0
        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)
                );
        }
コード例 #4
0
 public void BringEverythingToFront()
 {
     PicBoxTopBar.BringToFront();
     BtnAddMeme.BringToFront();
     PicBoxUserIcon.BringToFront();
     BtnLogIn.BringToFront();
     PicBoxNightMode.BringToFront();
 }
コード例 #5
0
ファイル: Helper.cs プロジェクト: hgomezcoron/TestMerlin
 //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();
 }