Example #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());
        }
Example #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;
 }
Example #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());
 }
Example #4
0
 public bool IsMainPageOpened()
 {
     return(Acts.IsElementExists(driver, By.Id("main-section")) &
            Acts.IsElementExists(driver, By.CssSelector("#logo > a > img")));
 }