Exemple #1
0
 public static void CreateEmailAccount(string email)
 {
     POM.EmailPage emp = new POM.EmailPage();
     ((IJavaScriptExecutor)DriverClass.driver).ExecuteScript("window.open();"); //For opening new tab in browser.
     DriverClass.driver.SwitchTo().Window(DriverClass.driver.WindowHandles.Last());
     DriverClass.driver.Navigate().GoToUrl("https://www.guerrillamail.com/inbox");
     emp.uname.Click();
     emp.setmailtxtbox.Clear();
     System.Threading.Thread.Sleep(5000);
     emp.setmailtxtbox.SendKeys(email);
     emp.setemailbtn.Click();
     DriverClass.driver.SwitchTo().Window(DriverClass.driver.WindowHandles.First());
 }
Exemple #2
0
 public static void EmailTab(string email)
 {
     POM.EmailPage ePage = new POM.EmailPage();
     DriverClass.driver.SwitchTo().Window(DriverClass.driver.WindowHandles.Last());
     DriverClass.driver.Navigate().Refresh();
 }