Forum Discussion

pkudrys's avatar
pkudrys
Contributor
2 years ago
Solved

how to use 'contentText' property in NameMapping xpath

Hi folks,   Is it possible to use 'contentText' extended property in Name Mapping xpath? If so, how? I already tried this...    //welcome-page//div/a//span[@contentText='Workbench']   ...
  • npaisley's avatar
    2 years ago

    Hi pkudrys!

     

    We unfortunately are not able to build our locators with extended properties, but we do have methods to find and interact with objects by searching for the contentText. 

     

    For instance, I recently posted a solution to clicking on an object in a comboBox by searching for the specific objects contentText. If this is applicable to your use case you may view this solution at this link = https://community.smartbear.com/t5/TestComplete-Questions/using-a-loop-to-select-a-certain-value-of-a-combo-box/td-p/234270

     

    Can you tell me what exactly it is you are attempting to do? If the above is not applicable I can help with finding the right solution for you.

     

    I hope this helps!