I have an unexpected result when using the Adapter.Find<T>() Method on a TableTag_Element in Internet Explorer.
My testcase: I have to count all tr-elements with a specific class-attribute.
I created following usercode:
Code: Select all
public void findTableEntries()
{
// Path to foooo: /dom[@caption='Table Test']//tabletag[#'foooo']
var foooo = repo.TableTest.Foooo;
IList<TrTag> trs = foooo.Find<TrTag>("//tr[@class='tableBody']");
Report.Info(trs.Count.ToString());
}
When using Internet Explorer, 8 elements are found.
When I search for //tr[@class='tableBody'] in Ranorex Spy, I find only the expected 4 elements.
I tried Host.Local.Find with the whole path, and it finds the expected count of TrTag-elements.
Is this a Bug in IE or in Ranorex?
I attached a sample html file.
Best regards
Patrick