Exemple #1
0
 public void LoginToAccount()
 {
     NavigateToUrl(urlAliexpress);
     Thread.Sleep(2000);
     driver.Manage().Window.FullScreen();
     Thread.Sleep(15000);
     if (CloseAdvertising.Displayed)
     {
         Click(CloseAdvertising);
     }
     Thread.Sleep(2000);
     Click(ButtonLogin);
     Thread.Sleep(8000);
     driver.SwitchTo().Frame(driver.FindElement(By.Id(aliExpressLoginFormId)));
     EmailLogin.Clear();
     SendText(EmailLogin, alijson.Email);
     // SendText(EmailLogin, "*****@*****.**");
     Thread.Sleep(1000);
     PasswordLogin.Clear();
     SendText(PasswordLogin, alijson.Password);
     // SendText(PasswordLogin, "qLEvZxcMVU9xqdQC");
     Thread.Sleep(1000);
     Click(ButtonSubmit);
     Thread.Sleep(7000);
 }
Exemple #2
0
 public AnnPages.AccountHomePage GoToAccountHomePage()
 {
     NavigateToUrl(urlAliexpress);
     Thread.Sleep(2000);
     driver.Manage().Window.FullScreen();
     Thread.Sleep(15000);
     try
     {
         Click(CloseAdvertising);
     }
     catch (NoSuchElementException)
     { }
     Thread.Sleep(2000);
     Click(ButtonLogin);
     Thread.Sleep(8000);
     driver.SwitchTo().Frame(driver.FindElement(By.Id(aliExpressLoginFormId)));
     EmailLogin.Clear();
     SendText(EmailLogin, "*****@*****.**");
     Thread.Sleep(1000);
     PasswordLogin.Clear();
     SendText(PasswordLogin, "qLEvZxcMVU9xqdQC");
     Thread.Sleep(1000);
     Click(ButtonSubmit);
     Thread.Sleep(7000);
     try
     {
         Click(CloseAdvertising);
     }
     catch (NoSuchElementException)
     { }
     Thread.Sleep(5000);
     Click(MyAliExpressBtn);
     return(new AnnPages.AccountHomePage(driver));
 }