Пример #1
0
        public static void CheckPassword()
        {
            NavigateTo.Login();
            ModalLogin pageModalLogin = new ModalLogin();

            pageModalLogin.txtEmail.SendKeys(Settings.ValidCrentials.email);
            pageModalLogin.txtPassword.SendKeys(Settings.InvalidCredentials.invalidPassword);
            pageModalLogin.btnBeginSesion.Click();
            Thread.Sleep(1000);
        }
Пример #2
0
        public static void Register()
        {
            NavigateTo.Register();
            ModalAccount pageModalAccount = new ModalAccount();
            Index        pageIndex        = new Index();

            pageModalAccount.txtEmail.SendKeys(Settings.AccountRegister.email);
            pageModalAccount.txtName.SendKeys(Settings.AccountRegister.nombre);
            pageModalAccount.txtPassword.SendKeys(Settings.AccountRegister.password);
            pageModalAccount.btnRegister.Click();
            Thread.Sleep(2000);
        }
Пример #3
0
        public static void RegisterWithGmail()
        {
            NavigateTo.Register();
            ModalAccount pageModalAccount = new ModalAccount();
            LoginGoogle  pageLoginGoogle  = new LoginGoogle();
            Index        pageIndex        = new Index();

            Thread.Sleep(3000);
            pageModalAccount.btnGoogle.Click();
            Actions.UpdateDriver();
            pageLoginGoogle.txtEmail.SendKeys(Settings.GmailAccount.email);
            pageLoginGoogle.btnNext.Click();
            Thread.Sleep(3000);
            pageLoginGoogle.txtPassword.SendKeys(Settings.GmailAccount.password);
            pageLoginGoogle.btnNext.Click();
            Thread.Sleep(3000);
        }