Пример #1
0
 public void WhenIMoveToTheFolder()
 {
     draftsPage = new DraftsPage(driver);
     draftsPage.ClickOnDraftsItem();
     log.Debug("debug level");
     ScreenShots.ScreenShot();
 }
Пример #2
0
 public void WhenIOpenLetter()
 {
     draftsPage.ClickOnDraftsItem();
     draftsPage.LetterOpenInDraftsFolder();
     log.Info("open letter");
     ScreenShots.ScreenShot();
 }
Пример #3
0
 public void WhenIOutOfMailbox()
 {
     mainPage = new InboxPage(driver);
     mainPage.LogOut();
     log.Info("logouted of mailbox");
     ScreenShots.ScreenShot();
 }
Пример #4
0
 public void NavigateOnMailboxPage()
 {
     loginPage = new LoginPage(driver);
     OpenPage();
     log.Debug("debug level");
     ScreenShots.ScreenShot();
 }
Пример #5
0
 public void WhenIGoToCreatedAMailbox()
 {
     loginPage = new LoginPage(driver);
     loginPage.Login(Utils.username, Utils.password);
     log.Info("logged in as " + Utils.username);
     ScreenShots.ScreenShot();
 }
Пример #6
0
 public void WhenIMoveToTheFolderSent()
 {
     sentPage = new SentPage(driver);
     sentPage.ClickOnSentItem();
     log.Debug("debug level");
     ScreenShots.ScreenShot();
 }
Пример #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);
        }
Пример #8
0
 public void WhenISendLetter()
 {
     draftsPage.ClickOnDraftsItem();
     draftsPage.LetterOpenInDraftsFolder();
     draftsPage.ClickOnSentItem();
     log.Info("send letter");
     log.Debug("debug level");
     ScreenShots.ScreenShot();
 }
Пример #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();
 }
Пример #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();
 }
Пример #11
0
 public void WhenIMoveToTheListOfMessagesInTheFolder()
 {
     draftsPage.ClickOnDraftsItem();
     ScreenShots.ScreenShot();
 }