NicolaFilosa_SE
2 years agoContributor
Array definition
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/div/div/div[contains(@class, 'flex-1')]").FindAll(PropArray, ValuesArray, 15, 1000).toArray();
for (var i=0; i<Targets.length;i++)
{Log.Message(Targets[i].contentText)}
I define the property using the variable PropArray:
var PropArray = "contentText";
For the values I tried to use an array but nothing works. If my elements are for example a and b how can I define the variable ValuesArray?
Thanks in advance