Forum Discussion

joaobc's avatar
joaobc
Occasional Contributor
4 years ago
Solved

Exist a way to use Find Method without PropNames, only with PropValues?

Documentation: https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-all/find-method.html   Hello, exist a way where I can use Find Method, without check in sou...
  • AlexKaras's avatar
    AlexKaras
    4 years ago

    Hi,

     

    I think that your current approach is way better then search by text and no, it is not possible to use .Find() without property names.

     

    P.S. For me this seems to be logical - object itself does not contain any text but only object property can contain some text. What property to consider when searching for the text? So you will need to iterate through all or some of properties. I believe that you can write such iterator yourself if you really need it. Also, it is quite possible that the text that you see does not belong to the grid but is some another object created and displayed by grid when it is empty.