I am trying to locate a number of elements which are structurally related to a known element in the hierarchy; in this case, finding all the td
cells in a single column of a table. I am trying to use a FindExpression as recommended in the user guide
, but it is failing with an error
System.NotSupportedException: Find.All is currently not supported for expressions that have a hierarchal dependency
My code works like this:
Note that the expression I am using is very similar to one of the expressions in the user guide (""tagindex=td:0"").
HtmlFindExpression expression =
IList<Element> foundelements = tablecontrol.Find.AllByExpression(expression);
The code compiles without problems, but at runtime it throws the exception as above. What do I need to do to use a find expression to locate the td elements in this way?
P.S. See attachments for a simple worked example.