public void MyProfile_DrobDownButtonClick_Test_1() { 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); testProjectPage.ProfileClick(driver); MyProfile myProfile = new MyProfile(driver); /* Set of assertions */ Assert.AreEqual(0, myProfile.ItemsDropDownListIsExpanded); myProfile.ItemsDropDownButtonClick(driver); Assert.AreEqual(1, myProfile.ItemsDropDownListIsExpanded); } }
public void MyProfile_DrobDownButtonClick_Test_2() { using (var driver = new ChromeDriver()) { /* Initialization */ var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(60)); driver.Manage().Window.Maximize(); driver.Navigate().GoToUrl("https://lionbridge.com/"); MyProfile myProfile = new MyProfile(driver); /* Set of assertions */ Assert.AreEqual(-1, myProfile.ItemsDropDownListIsExpanded); myProfile.ItemsDropDownButtonClick(driver); Assert.AreEqual(-1, myProfile.ItemsDropDownListIsExpanded); } }