Ask a Question

xPath won't recognize

Luukdb
Occasional Contributor

xPath won't recognize

Hello,

I am trying to create a generic mapped object using xPath. But for some reason TestComplete cannot find the element.

2021-10-05 15_00_06-Window.png

I am trying to get the selected selector working. As it is now it doesn't seem to recognize the selector and it's using OR so it has to go through all the selectors, am I right?

When deselecting, TestComplete does recognize the selector. But I want to create a general selector. And for some reason start-with doesn't work, because multiple results are found.

2021-10-05 15_00_24-Window.png

I also checked the TestComplete documents to see if there is anything about this but I only get general xPath information.

Is there anyone who can help me with this? 

 

Kind regards,

Luuk

2 REPLIES 2
brumazz
Staff

Re: xPath won't recognize

Have you attempted using a wildcard in the name mapping?  Or edit the order of selectors

 
Luukdb
Occasional Contributor

Re: xPath won't recognize

Hello,

Yes I tried to change the order and what happens is, the one selected is recognized, but others aren't. It seems that for some reason only the first or second selected selector are being used.

 

As for the wildcard, the * won't work using xPath, as far as I tried.

cancel
Showing results for 
Search instead for 
Did you mean: