A minor little utility I use to get the data out of a cell in a table. You pass in an row of the table as an IWebElement and also the number of the column you want to get. It returns a string.
/// Retrieves the value in a particular
/// <param name="dataRow"></param>
/// <param name="column"></param>
public string GetTDItem(IWebElement dataRow, int column)
string theLocator = "//tr[@id='" + dataRow.GetAttribute("id") + "']/td[" + column.ToString() + "]";
If you're a slave to your free associations, does it automatically become something else?
Well the only issue I see with this is the bug assumption that the the row will have ID attribute associated all the times. Which is a rare case
Tarun Buy the NEW QTP Descriptive Programming Unplugged Book ** Download QTP Unplugged 2nd Edition eBook for FREE **