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(); }
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(); }