Forum Discussion

SiwarSayahi's avatar
SiwarSayahi
Occasional Contributor
6 years ago
Solved

identify a web element

Hi,

 

I have a web element without any static identifier.

So i decide to detect this element using the css selector , based on the text.

But i don't find a way with testComplete scripting.

The example is :  <span >CHF</span>

 

 

Thank you for your support,

5 Replies

    • SiwarSayahi's avatar
      SiwarSayahi
      Occasional Contributor

      Hi Robert,

      Thank you for your response.

       

      The solution is working for me, but using this solution I should get all elements with the same selector and filter after that the result by text, it is taking much time and performance that's why i am searching for a direct solution like the function span:contains('CHF') which is not supported by testComplete.

       

      BR,

      • tristaanogre's avatar
        tristaanogre
        Esteemed Contributor

        So, the next question is, why are you using CSS Selector?  Is this an object that cannot be idenfied via Object Browser or Object Spy and, therefore, unable to be mapped via NameMapping?