コード例 #1
0
        /// <summary>
        /// Method , which checkking unread messages, during to searching needed buttons
        /// </summary>
        public void CheckUnreadMail()
        {
            Wait.Until(t => Driver.FindElements(By.XPath(Locator.IncomingButtonLocator)).Any());
            IncomingButton = Driver.FindElement(By.XPath(Locator.IncomingButtonLocator));
            IncomingButton.Click();

            Wait.Until(t => Driver.FindElements(By.XPath(Locator.MoreopportunityButtonLocator)).Any());
            SelectionUnreadButton = Driver.FindElement(By.XPath(Locator.MoreopportunityButtonLocator));
            SelectionUnreadButton.Click();

            Wait.Until(t => Driver.FindElements(By.XPath(Locator.UnreadButtonLocator)).Any());
            UnreadButton = Driver.FindElement(By.XPath(Locator.UnreadButtonLocator));
            UnreadButton.Click();
        }
コード例 #2
0
        /// <summary>
        /// Method, which find needed buttons ,and send message
        /// </summary>
        /// <param name="answerpsevdonim"></param>
        public void TextingAnswerMessageToMail(string answerpsevdonim)
        {
            Wait.Until(t => Driver.FindElements(By.XPath(Locator.AnswerButtonLocator)).Any());
            IncomingButton = Driver.FindElement(By.XPath(Locator.AnswerButtonLocator));
            IncomingButton.Click();

            Wait.Until(t => Driver.FindElements(By.XPath(Locator.TextBoxLocator)).Any());
            TextBoxLabel = Driver.FindElement(By.XPath(Locator.TextBoxLocator));
            TextBoxLabel.SendKeys(answerpsevdonim);

            Wait.Until(t => Driver.FindElements(By.XPath(Locator.SendButtonLocator)).Any());
            SendButton = Driver.FindElement(By.XPath(Locator.SendButtonLocator));
            SendButton.Click();
        }