Filter unable to use with some IElements
Brought to you by:
jvmenen
We can't use the Filter for some IElements ,as for an example :
ITable table = browser.Table(Find.ByClass("table"));
ITableRowCollection = table.TableRows.Filter(Find.ByClass("tableRows"))[2]; // Impossible
Do not implement the IElementsContainer interface.
Hi,
I think this will do the trick:
ITable table = browser.Table(Find.ByClass("table"));
ITableRowCollection rows = table.TableRows.Filter(Find.ByClass("tableRows"));
ITableRow row = rows[2];
ITableRow inherits IElementsContainerTemp. Be aware in the beta1 this will be IElementContainer and support for ITableRow is dropped, Use TableRow instead.
HTH,
Jeroen