Ejemplo n.º 1
0
 internal static void EmailLogOut(IWebDriver driver)
 {
     TestSetupSettings.WaitForPage(driver, 10000, ("//*[@title='Inbox']"));
     driver.FindElement(By.XPath("//*[@title='Inbox']")).Click();
     driver.FindElement(By.XPath("//a[starts-with(@aria-label, 'Google Account: Steve Testfield')]")).Click();
     driver.FindElement(By.XPath("//*[starts-with(@aria-label, 'Account Information')]//a[text()='Sign out']")).Click();
 }
Ejemplo n.º 2
0
        public static void DrvSetup(TestContext testContext)  //***?????
        {
            IWebDriver driver = TestSetupSettings.ChrmDriverSetup();

            driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(30);
            driver.Navigate().GoToUrl("https://www.google.com/gmail");
            driver.Manage().Window.Maximize();
        }
Ejemplo n.º 3
0
 public void Email_Validate_RecievedMail_Test(IWebDriver driver)
 {
     Email.UserEmailCompose(driver, TestSetupSettings.name(), TestSetupSettings.bodyText());
 }
Ejemplo n.º 4
0
 public void Email_Compose_Gmail_Test(IWebDriver driver)
 {
     Email.UserEmailCompose(driver, TestSetupSettings.name(), TestSetupSettings.bodyText());
 }
Ejemplo n.º 5
0
 public void LogIn_PassWord_Gmail_ConectToMailBox_Test(IWebDriver driver)
 {
     LogInOut.UserPassword(driver, TestSetupSettings.psWord());
 }
Ejemplo n.º 6
0
 public void LogIn_UserName_Gmail_ConectToMailBox_Test(IWebDriver driver)
 {
     LogInOut.UserLogIn(driver, TestSetupSettings.name());
 }
Ejemplo n.º 7
0
 internal static void UserPassword(IWebDriver driver, string psWord)
 {
     driver.FindElement(By.XPath("//*[@id='password']//input[@name='password']")).SendKeys(psWord);
     TestSetupSettings.WaitForPage(driver, 10000, ("//*[@id='passwordNext']//span[text()='Next']"));
     driver.FindElement(By.XPath("//*[@id='passwordNext']//span[text()='Next']")).Click();
 }