public Rexnord Login(string user, string pwd) { driver.FindElement(By.LinkText(SIGN_IN_LINK)).Click(); driver.FindElement(By.Id(USER_NAME_ID)).SendKeys(user); driver.FindElement(By.Id(PASSWORD_ID)).SendKeys(pwd); driver.FindElement(By.Id("userNamePasswordSignInButton")).Click(); //WaitUtil.WaitForElementPresence(driver, By.LinkText("My Account")); WaitUtil.WaitForPageLoad(driver); return(new Rexnord(testEnv)); }
public QuickOrder DoQuickOrder() { FindElement(By.LinkText("Quick Order")).Click(); WaitUtil.WaitForPageLoad(driver); return(new QuickOrder(testEnv)); }