protected override void WaitForPage() { WaitUtils.Wait(Driver, 30, d => { var e = d.FindElements(By.XPath(Make_SuffixXpe("txtPrimaryFName"))); return(e.Count() > 0); }); }
public OpenPrefixRange EnterSpeficRange(string range) { WaitUtils.Wait(Driver, 15, d => d .FindElements(By.CssSelector("div.input-group input")) .Tail() .All(el => el.Enabled && el.Displayed)); var elements = Driver.FindElements(By.CssSelector("div.input-group input")); range.Tail().Zip(elements.Tail(), (c, el) => el.SetText(c.ToString())).Last(); return(this); }
public PayPalContinue2(IWebDriver driver) { this.driver = driver; WaitUtils.Wait(driver, 30, (d) => { try { var b1 = !d.FindElement(By.XPath("//*[@id='preloaderSpinner']")).Displayed; var b2 = d.FindElement(By.XPath("//*[@id='button']")).Displayed; return(b1 && b2); } catch { return(false); } }); elements = new PageElements(driver, xpaths); }