Forum Discussion

coreyallen's avatar
coreyallen
Occasional Contributor
9 years ago

Conditional name mapping not working?

I'm testing an install for our product and the index displays different values based on a few factors but the index is always 1, 2, 3 or 4.

I've tried using attributes other than the index but it give me an error that the other attributes aren't specific enough.

So I tried setting up a conditional name map like the one attached (Index = 1 or index = 2 or index =3 or index=4,) and it's unable to find the object.   However if I remove all but inxex = 4 then it works (until later when it has a different index).  I've also tried one index is less than 5 and still no go.

 

14 Replies

    • coreyallen's avatar
      coreyallen
      Occasional Contributor

      Thanks for the reply,

      It's an integer, I've also tried it with a string.

  • coreyallen's avatar
    coreyallen
    Occasional Contributor

    Here's the other weird thing. 

    It's currently setup like this

    Process = Setup

    and

    Index = 4 or

    Index = 3 or

    Index = 2 or

    Index = 1

     

    And it doesn't work, however if I set it up like this

    Process = Setup

    and

    Index = 4

    It does work (until the index isn't 4)

     

    • NisHera's avatar
      NisHera
      Valued Contributor

      Didn't you got a warnning message like "Ambiguos window recognition" ?
      I think this is becourse it could not recognise unique process or object
      you may hav more that one objects would mapped for that criteria

       (may be 4 objects)

      • Colin_McCrae's avatar
        Colin_McCrae
        Community Hero

        Are you saying the top level object (the sys process) is showing different index numbers at different times?

         

        This doesn't sound right. Why are there multiple versions of the process? Is this expected? It sounds to me more like there are version of it running in the background that probably shouldn't be there ....

  • Bipin's avatar
    Bipin
    New Contributor

    This seems to be a bug with Name mapping.. I am having the seme issue with TC 10.50 .. used to work with 10.20

    Even the Condition added to the Properties and values anything other then equal is not working .. 

     eg:          className - Equal - ng-scope

         AND Width -Greater then- 0  

     

  • XBug's avatar
    XBug
    Contributor

    Hi,

     

    Had this been addressed or fixed?

     

    I am also having the same problem with v12.0122 and would love to find out more.

     

     

    Thanks!

  • Bipin's avatar
    Bipin
    New Contributor
    Not sure.
    I just used queryselectorallton the parent node to find all elements and loop through it to get what I needed
    • XBug's avatar
      XBug
      Contributor

      Bipin wrote:
      Not sure.
      I just used queryselectorallton the parent node to find all elements and loop through it to get what I needed

      How did you do that? Can you share your codes/steps?