Ejemplo n.º 1
0
        public void Open(WebDriverWait wait)
        {
            MainPage mainPage = new MainPage(driver);

            wait.Until((d) => Acts.IsElementExists(driver, By.XPath("//div[@id='right-menu']//i[contains(@class, 'sign-out')]")));
            mainPage.ProfileButton.Click();
            wait.Until((d) => IsLogOutButtonVisible());
        }
Ejemplo n.º 2
0
 public static bool IsMainPageOpened(IWebDriver driver)
 {
     return(Acts.IsElementExists(driver, By.Id("main-section")) &
            Acts.IsElementExists(driver, By.Id("left-side-bar")) &
            Acts.IsElementExists(driver, By.Id("right-side-bar")) ?
            true : false);
     //return driver.FindElements(By.Id("main-section")).Count > 0 &
     //    driver.FindElements(By.Id("left-side-bar")).Count > 0 &
     //    driver.FindElements(By.Id("left-side-bar")).Count > 0 ?
     //    true : false;
 }
Ejemplo n.º 3
0
 public void Open(Actions act, WebDriverWait wait)
 {
     wait.Until((d) => Acts.IsElementExists(driver, By.CssSelector("#left-menu > div")));
     act.MoveToElement(LeftMenuSection, 100, 200).Perform();
     wait.Until((d) => IsSearchButtonVisible());
 }
Ejemplo n.º 4
0
 public bool IsMainPageOpened()
 {
     return(Acts.IsElementExists(driver, By.Id("main-section")) &
            Acts.IsElementExists(driver, By.CssSelector("#logo > a > img")));
 }