コード例 #1
0
 public void DropDownList()
 {
     WebDriverWaitUtil.DriverWait(driver, byDropDown);
     dropDownLetters.ClickElement();
     WebDriverWaitUtil.DriverWait(driver, byListDropDown);
     dropDownUnReadLetters.ClickElement();
 }
コード例 #2
0
 public void SendToSpam()
 {
     WebDriverWaitUtil.DriverWait(driver, byInboxLetter);
     letters[1].ClickElement();
     WebDriverWaitUtil.DriverWait(driver, bySpamButton);
     spamButton.ClickElement();
 }
コード例 #3
0
 public void MarkLettersByFlag()
 {
     WebDriverWaitUtil.DriverWait(driver, byInboxLetter);
     foreach (IWebElement ltrs in buttonMarkFlages)
     {
         ltrs.ClickElement();
     }
 }
コード例 #4
0
 public HomePage Login(string login, string password)
 {
     WebDriverWaitUtil.DriverWait(driver, byStartMail);
     loginField.SendText(login);
     buttonMail.ClickElement();
     WebDriverWaitUtil.DriverWait(driver, byInputPassword);
     passwordField.SendText(password);
     buttonMail.ClickElement();
     WebDriverWaitUtil.DriverWait(driver, byLogoutLink);
     return(new HomePage(driver));
 }
コード例 #5
0
 public void WriteMessage(string addressee, string theme, string message)
 {
     WebDriverWaitUtil.DriverWait(driver, byWriteMessage);
     buttonWriteLetter.ClickElement();
     WebDriverWaitUtil.DriverWait(driver, byWindowWriteMessage);
     recipient.SendText(addressee);
     subject.SendText(theme);
     textMessage.ClickElement();
     textMessage.SendText(message);
     sendButton.ClickElement();
 }
コード例 #6
0
 public int CountUnReadLetters()
 {
     WebDriverWaitUtil.DriverWait(driver, byReadLetters);
     return(unReadLetters.Count);
 }