public void WhenICollapseTheTable() { var rows = d.Find(TablePage.StocksTable).FindElements(TablePage.StocksTableRows); beforeCount = rows.Count(); d.Click(TablePage.StocksHeader); }
public void WhenISelect(string name) { now = DateTime.Now; d.Select(selectByEx, name); Assert.AreEqual(name, d.Find(selectByEx).Value()); time = DateTime.Now - now; }
private static object GetMemberValueByEx(object page, MemberWrapper member) { ByEx byEx = (ByEx)GetMemberValue(page, member); if (byEx.Input == Input.Select) { return(_driver.FindSelect(byEx).Value()); } else { return(_driver.Find(byEx).Value()); } }