Showing results for 
Search instead for 
Did you mean: 

search object by using two criteria

Occasional Contributor

search object by using two criteria

i would like to search for an object by using two search criteria.


example i want to search for a button and then to click on it .. but there is a lot of button with the same name on that webpage .. so i want to use contentText and idStr, which mean the button must match both the contentText and idStr for the clicking to happen, how can i do that ?


now i only manage to use one by using the native function how to use both contentText and idStr


*note using contentText and idStr are example only, i am flexible to use other attribute.

thanks in advance

Community Hero

Re: search object by using two criteria

TestComplete is having Find functions where you can use an array of properties to find an element/object.


This link will help you.



Shankar R

LinkedIn | CG-VAK Software | Bitbucket |

“You must expect great things from you, before you can do them”

Extension Available

New Here?
Join us and watch the welcome video:
Watch the new interview