maxthomassin
13 years agoOccasional Contributor
Help with method Find()
Hello everyone,
im new to TestComplete and i need to find an object in a table using the find method with multiples properties. I'm trying to use it like in the example, but it's not working. Can someone give me a hand?
var arProp, arValue;
arProp = new Array("outerText", "innerText");
arValue = new Array("12155*", "12155*");
item = all.Find(arProp, arValue);
if (item.Exists)
{
Log.Message("Found! " + item.Name + "\r\n\r\n" + item.innerText);
}
else
Log.Warning("Not found!");
I get the error : The parameter is incorrect on line 26 (where is the Find command)
Thanks you !
Maxime Thomassin
im new to TestComplete and i need to find an object in a table using the find method with multiples properties. I'm trying to use it like in the example, but it's not working. Can someone give me a hand?
var arProp, arValue;
arProp = new Array("outerText", "innerText");
arValue = new Array("12155*", "12155*");
item = all.Find(arProp, arValue);
if (item.Exists)
{
Log.Message("Found! " + item.Name + "\r\n\r\n" + item.innerText);
}
else
Log.Warning("Not found!");
I get the error : The parameter is incorrect on line 26 (where is the Find command)
Thanks you !
Maxime Thomassin