public void FindCellByRowAndColumnName() { Table w3cTable = new Table(WebDriver.FindElement(By.Id("customers"))); //You could potentially already have the row element, perhaps by find it a different way, but using a nother table methond here to get a row IWebElement requiredRow = w3cTable.FindRowMatchingColumnData("Company", "The Big Cheese"); Assert.AreEqual("Liz Nixon", w3cTable.FindCellByRowAndColumnName(requiredRow, "Contact").Text); }
public void VerifyRowContentsUsingKnownColumnValue() { Table w3cTable = new Table(WebDriver.FindElement(By.Id("customers"))); Assert.AreEqual("Alfreds Futterkiste Maria Anders Germany", w3cTable.FindRowMatchingColumnData("Company", "Alfreds Futterkiste").Text); }