Exemplo n.º 1
0
 public void WhenIMoveToTheFolder()
 {
     draftsPage = new DraftsPage(driver);
     draftsPage.ClickOnDraftsItem();
     log.Debug("debug level");
     ScreenShots.ScreenShot();
 }
Exemplo n.º 2
0
 public void WhenIOpenLetter()
 {
     draftsPage.ClickOnDraftsItem();
     draftsPage.LetterOpenInDraftsFolder();
     log.Info("open letter");
     ScreenShots.ScreenShot();
 }
Exemplo n.º 3
0
 public void WhenIOutOfMailbox()
 {
     mainPage = new InboxPage(driver);
     mainPage.LogOut();
     log.Info("logouted of mailbox");
     ScreenShots.ScreenShot();
 }
Exemplo n.º 4
0
 public void NavigateOnMailboxPage()
 {
     loginPage = new LoginPage(driver);
     OpenPage();
     log.Debug("debug level");
     ScreenShots.ScreenShot();
 }
Exemplo n.º 5
0
 public void WhenIGoToCreatedAMailbox()
 {
     loginPage = new LoginPage(driver);
     loginPage.Login(Utils.username, Utils.password);
     log.Info("logged in as " + Utils.username);
     ScreenShots.ScreenShot();
 }
Exemplo n.º 6
0
 public void WhenIMoveToTheFolderSent()
 {
     sentPage = new SentPage(driver);
     sentPage.ClickOnSentItem();
     log.Debug("debug level");
     ScreenShots.ScreenShot();
 }
Exemplo n.º 7
0
        public static void HighlightElement(IWebElement element)
        {
            IJavaScriptExecutor js = ((IJavaScriptExecutor)driver);
            String bgcolor         = element.GetCssValue("background-color");

            js.ExecuteScript("arguments[0].style.compose__labels.background-color = '" + "red" + "'", element);
            ScreenShots.ScreenShot();
            js.ExecuteScript("arguments[0].style.compose__labels.background-color = '" + bgcolor + "'", element);
        }
Exemplo n.º 8
0
 public void WhenISendLetter()
 {
     draftsPage.ClickOnDraftsItem();
     draftsPage.LetterOpenInDraftsFolder();
     draftsPage.ClickOnSentItem();
     log.Info("send letter");
     log.Debug("debug level");
     ScreenShots.ScreenShot();
 }
Exemplo n.º 9
0
 public void WhenICreateANewMessageWithDataDestinationTopicAndDataContent(string namesender, string themeLetter,
                                                                          string messageUser)
 {
     mainPage = new InboxPage(driver);
     mainPage.ClickOnCreateNewMessageButton();
     createInboxPage = new InboxPage(driver);
     createInboxPage.CreateNewMessage(namesender, themeLetter, messageUser);
     log.Info("create a new message");
     ScreenShots.ScreenShot();
 }
Exemplo n.º 10
0
 public void CreateNewMessage(string namesender, string themeLetter, string messageUser)
 {
     whom.SendKeys(namesender);
     TestEmailSteps.HighlightElement(whom2);
     ScreenShots.ScreenShot();
     theme.SendKeys(themeLetter);
     GoToFrameSendKeys(messageUser);
     driver.SwitchTo().DefaultContent();
     driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(3));
     dropdown.Click();
     saveDraft.Click();
 }
Exemplo n.º 11
0
 public void WhenIMoveToTheListOfMessagesInTheFolder()
 {
     draftsPage.ClickOnDraftsItem();
     ScreenShots.ScreenShot();
 }