Ejemplo n.º 1
0
        public static /*bool*/ void CheckLetternTrash(string email, string text)
        {
            TrashPage tp = new TrashPage();

            InBoxPage inp    = new InBoxPage();
            bool      result = inp.CheckLetter(email, text);
        }
Ejemplo n.º 2
0
        public static void ChooseEmotionsIcons(int count)

        {
            InBoxPage inp = new InBoxPage();

            inp.ChooseEmotionsIcons(count);
            inp.ButtonSend.Click();
        }
Ejemplo n.º 3
0
        public static void MoveMailIntoSpam(string email)

        {
            InBoxPage inp = new InBoxPage();

            inp.ClickCheckBoxInLetter(email);
            inp.ButtonSpam.Click();
        }
Ejemplo n.º 4
0
        public static string GetSignature()
        {
            InBoxPage inp = new InBoxPage();

            inp.ButtonCompose.Click();
            Thread.Sleep(4000);
            return(inp.TbSignature.GetText());
        }
Ejemplo n.º 5
0
        public static void ChooseSettings()
        {
            InBoxPage inp = new InBoxPage();

            //inp.ClickButtonSettings();
            //inp.ClickOnLinkSettings();
            //inp.ClickSetting();
            Driver.DriverInstance.Navigate().GoToUrl(MAIL_SETTING);
        }
Ejemplo n.º 6
0
        public static void AddEmoticons(string name, string title)
        {
            InBoxPage inp = new InBoxPage();

            inp.ButtonCompose.Click();
            inp.TbRecipient.ClearAndType(name);
            inp.TbSubject.ClearAndType(title);
            inp.ButtonEmoticons.Click();
        }
Ejemplo n.º 7
0
        public static void SendMassage(string name, string title, string text)
        {
            InBoxPage inp = new InBoxPage();

            inp.ButtonCompose.Click();
            inp.TbRecipient.ClearAndType(name);
            inp.TbSubject.ClearAndType(title);
            inp.TbText.ClearAndType(text);
            inp.ButtonSend.Click();
        }
Ejemplo n.º 8
0
        public static void DeleteAllMail()
        {
            Thread.Sleep(3000);
            Driver.DriverInstance.Navigate().GoToUrl(MAIL_INBOX);
            Thread.Sleep(3000);
            InBoxPage inp = new InBoxPage();

            if (inp.SelectAllMail())
            {
                inp.ButtonDelete.Click();
            }
        }
Ejemplo n.º 9
0
        public static void SendMassageWithAttach(string name, string title, string text, string path)
        {
            InBoxPage inp = new InBoxPage();

            inp.ButtonCompose.Click();
            inp.TbRecipient.ClearAndType(name);
            inp.TbSubject.ClearAndType(title);
            inp.TbText.ClearAndType(text);
            inp.ButtonAttach.Click();
            Attachment.AttachFile(path);
            inp.ButtonSend.Click();
        }
Ejemplo n.º 10
0
        public static void MoveMailFromSpam(string email)
        {
            InBoxPage inp = new InBoxPage();

            if (inp.SelectAllMail() == true)
            {
                inp.ButtonNotSpam.Click();
            }
            else
            {
                return;
            }
        }
Ejemplo n.º 11
0
        public static void SignOutAccount()
        {
            InBoxPage inp = new InBoxPage();

            inp.ButtonIcon.Click();
            Thread.Sleep(1000);
            inp.ButtonSignOut.Click();

            try
            {
                IAlert alert = Driver.DriverInstance.SwitchTo().Alert();
                alert.Accept();
            }
            catch (NoAlertPresentException e)
            {
            }
            catch (NoSuchElementException e)
            {
            }
        }
Ejemplo n.º 12
0
        public static void ClickOnLinkInMail(string email)
        {
            InBoxPage inp = new InBoxPage();

            inp.ChooseLetter(email);
        }
Ejemplo n.º 13
0
        public static bool AlertIsPresent()
        {
            InBoxPage inp = new InBoxPage();

            return(Driver.DriverInstance.IsElementPresent(inp.LableAlertBigFile.by));
        }
Ejemplo n.º 14
0
        public static bool EmoticonsIsPresentInMail()
        {
            InBoxPage inp = new InBoxPage();

            return(Driver.DriverInstance.IsElementPresent(inp.LanelIcon.by));
        }
Ejemplo n.º 15
0
        public static bool CheckLetter(string email, string text)
        {
            InBoxPage inp = new InBoxPage();

            return(inp.CheckLetter(email, text));
        }
Ejemplo n.º 16
0
        public static void CloseFormForMail()
        {
            InBoxPage inp = new InBoxPage();

            inp.ButtonClose.Click();
        }
Ejemplo n.º 17
0
        public static void CancelAlert()
        {
            InBoxPage inp = new InBoxPage();

            inp.ButtonCancel.Click();
        }