Wildcard in path and user code
Posted: Fri Oct 21, 2016 12:34 pm
Hi,
I have a xpath expression, that matches multiple elements. When adding this into a recording module via "user code", I can retrieve all of them in code via CreateAdapters.
How does this work with a code module ? There I can drag in the item from the repo, but I cannot cast it to IList, it seems to be seen as one.
which is wrong.
So, how can I get the list of matches in the code module ?
I have a xpath expression, that matches multiple elements. When adding this into a recording module via "user code", I can retrieve all of them in code via CreateAdapters.
How does this work with a code module ? There I can drag in the item from the repo, but I cannot cast it to IList, it seems to be seen as one.
Code: Select all
var repo = MySolution.Foo.FooRepo.Instance;
IList<DivTag> highlightedRows = repo.Foo.AList.highlightedRow;
So, how can I get the list of matches in the code module ?