Forum Discussion

sean_ng's avatar
sean_ng
Occasional Contributor
6 years ago

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

1 Reply

  • shankar_r's avatar
    shankar_r
    Community Hero

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

     

    This link will help you.