Beispiel #1
0
        public void ApplicationBoard_UserProfile_Test_3()
        {
            using (var driver = new ChromeDriver())
            {
                /* Initialization */
                var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(60));

                driver.Manage().Window.Maximize();
                driver.Navigate().GoToUrl("https://tms.lionbridge.com/");

                string       projectTitle = ""; // Project Name
                ProjectsPage testPage     = new ProjectsPage(driver, projectTitle);

                testPage.ClickChosenProject();
                ParticularProjectPage testProjectPage = new ParticularProjectPage(driver);

                ApplicationBoard applicationBoard = new ApplicationBoard(driver);
                applicationBoard.LoggedUserClick(driver);

                applicationBoard.ProfileClick(driver);

                /* Set of assertions */

                Assert.AreEqual(1, applicationBoard.ProfileActivityIsNull);
                Assert.AreEqual(-1, applicationBoard.ProfileActivityIsDisplayed);
                Assert.AreEqual(0, applicationBoard.ProfileWindowIsNull);
                Assert.AreEqual(1, applicationBoard.ProfileWindowIsDisplayed);
            }
        }
 public void ProfileClick(IWebDriver driver)
 {
     myApplicationBoard.ProfileClick(driver);
     myProfileInstance = new MyProfile(driver);
 }