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