Hi to everyone. I want to find and display 2 or more text elements in a web page. To do it I use the function FindAll, see below: Targets=Aliases.browser.pageEquipment.FindElement("//se-app/div/div/...
I'm still not sure what 1000 is in FindAll("contentText", "*", 15, 1000)!?
Looking at your screenshot, it looks like the value should be "DR 4010 PT100" (note the spacing) and not "DR 4010PT100"
Also, you can't do the following, as PropArray property values have to be unique.
var PropArray = ["contentText", "contentText"];
var ValuesArray = ["INP99999", "TelevisGo"];
var Targets = findTargets.FindAll(PropArray, ValuesArray, 20, true);
e.g.
var PropArray = ["contentText", "ObjectType"];
var ValuesArray = ["*", "Link"];
Does this work?
function test()
{
var Targets = Aliases.browser.pageEquipment.FindElement("//se-app/div/div/div/div/div[contains(@class, 'flex-1')]");
var Items = Targets.FindAll("contentText", "*", 1000, true); // or try with Targets.FindAll("contentText", "*", 1000, true).toArray();
Log.Message(Items.length);
for (var i = 0; i < Items.length; i++) {
Log.Message(Items[i].contentText)
}
}