public TableRow ( IBlock parent, |
||
parent | IBlock | |
@by | ||
return | System.Collections |
public TableRow(IBlock parent, By @by) : base(parent, @by)
{
_data = ParentBlock.Tag
.FindElement(By.TagName("thead"))
.FindElement(By.TagName("tr"))
.FindElements(By.TagName("th"))
.Zip(FindElements(By.TagName("td")), (header, cell) => new KeyValuePair<string, string>(header.Text, cell.Text))
.ToDictionary(x => x.Key, x => x.Value);
}
TableRow::TableRow ( IBlock parent, IWebElement tag ) : System.Collections |