Forum Discussion
marin
12 years agoFrequent Contributor
...figured out in the meantime:
it must be a variant to which EvaluateXPath() returns the found objects. Var must be casted to VBArray afterwards:
it must be a variant to which EvaluateXPath() returns the found objects. Var must be casted to VBArray afterwards:
var valueArr;
var objPanel = pgPage.NativeWebObject.Find("ObjectIdentifier", "Div_Content");
valueArr = objPanel.EvaluateXPath("//DIV[@class='OverviewPanelEntryMain']");
valueArr = (new VBArray(valueArr)).toArray();