public void NavigateOnMailboxPage()
 {
     loginPage = new LoginPage(driver);
     OpenPage();
     log.Debug("debug level");
     ScreenShots.ScreenShot();
 }
 public override IWebDriver factoryMethod()
 {
     if (driver == null)
     {
         driver = new FirefoxDriver();
         driver = new DriverDecorator(driver);
         loginPage = new LoginPage(driver);
         driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(Utils.timeout));
         driver.Manage().Window.Maximize();
     }
     return driver;
 }
 public void ThenICheckThatLogoutMadeSuccessfully()
 {
     loginPage = new LoginPage(driver);
     Assert.That(loginPage.CheackLogout(), Is.True);
     log.Error("logout made not successful");
 }
 public void WhenIGoToCreatedAMailbox()
 {
     loginPage = new LoginPage(driver);
     loginPage.Login(Utils.username, Utils.password);
     log.Info("logged in as "+ Utils.username);
     ScreenShots.ScreenShot();
 }