Beispiel #1
0
        public void VerifyMailSubject()
        {
            SeleniumMethods.LogInToABV(driver, usedURL, userName, passWord);

            SeleniumMethods.PerformSearch(driver, searchStr);

            /*Console.WriteLine(subjectOfMail);
             * Console.WriteLine(SeleniumMethods.MailSubject(driver));*/

            Assert.AreEqual(subjectOfMail, SeleniumMethods.GetMailSubject(driver));
        }
Beispiel #2
0
        public void VerifySuccessfullLogIn()
        {
            SeleniumMethods.LogInToABV(driver, usedURL, userName, passWord);

            /*Console.WriteLine(myName);
             * Console.WriteLine(SeleniumMethods.GetUserNameFromMainPage(driver));
             *
             * Console.WriteLine(searchMenuId);
             * Console.WriteLine(SeleniumMethods.SearchMenu(driver));*/

            Assert.AreEqual(myName, SeleniumMethods.GetUserNameFromMainPage(driver));
            Assert.AreEqual(searchMenuId, SeleniumMethods.SearchMenu(driver));
        }
Beispiel #3
0
        public static void LogInToABV(IWebDriver driver, string usedURL, string userName, string passWord)
        {
            driver.Navigate().GoToUrl(usedURL);

            SeleniumMethods.CloseGDPRiFrame(driver);

            driver.SwitchTo().DefaultContent();

            driver.FindElement(By.Id("username")).SendKeys(userName);

            driver.FindElement(By.Id("password")).SendKeys(passWord);

            driver.FindElement(By.Id("loginBut")).Click();
        }
Beispiel #4
0
        public void VerifyMailIsRecieved()
        {
            SeleniumMethods.LogInToABV(driver, usedURL, userName, passWord);

            SeleniumMethods.PerformSearch(driver, searchStr);

            SeleniumMethods.OpenUnreadMail(driver);

            SeleniumMethods.ReplicationOfTheMail(driver, userName);

            SeleniumMethods.AddTextToMail(driver, mailBody);

            SeleniumMethods.SendMail(driver);
        }
Beispiel #5
0
        public static void ReplicationOfTheMail(IWebDriver driver, string userName)
        {
            driver.FindElement(By.CssSelector(".abv-letterLinksHolder>div:nth-child(1)")).Click();

            SeleniumMethods.AddCopyToTheReplication(driver, userName);
        }