cancel
Showing results for 
Search instead for 
Did you mean: 

Name Mapping with XPath

0 Kudos

Name Mapping with XPath

I would love to have a new feature, where you can map objects using the xpath.

 

The problem with the current object mapping is, that it only supports a given set of tags, which gets harder and harder, with all those custom html tags and the new standards, that use more of those custom tags ... + angular 2 libraries are not supported either.

 

 

I have a couple of tags in my current project, that I can only select within scripts with the findchildbyxpath method ... like mat-select, accordion-group-container and all those can be easily selected / clicked / typed into with xpath finding but the object mapping doesnt recognize it and therefore I can not interact with it other than within scripts.

 

 

Mapping objects with their xpath would make all of this possible and also makes it easier to generate more flexible structures of name mappings like if its a generated website, you can leave some panels blank with just using the // xpath to select a lower level rather than one step down with the current panel system

3 Comments
Status changed to: Selected for Development

Hi! This will be available in v14.50. 

 

TestComplete will automatically recommend a set of XPaths and CSS Selectors for each object when the 'cross-platform web testing' mode is selected. These will be automatically added to the Namemapping repository during test creation. If a specific selectory does not work, TestComplete will automatically select another suitable selector that works and continue running the test. The benefit of this capability is that your tests will be less flaky and your test maintenance time will be reduced significantly.

 

You can add your own custom selectors as well, and also remove the default selectors suggested by TestComplete. 

 

Here is a visual representation of how Sectors will be stored in Namemapping:

NamemappingSelectors.PNG

 

We plan to release this feature mid-July 2020.  

 

The proprietary way of using Namemapping without Xpath and CSS Sectors will also be available in the default mode of object recognition. 

Status changed to: Selected for Development
 
Status changed to: Implemented
 
Announcements
Welcome to the TestComplete Feature Requests board!

Here you can review submitted feature requests and vote up the ones you like! If you can't find the feature you want - go ahead and suggest your own idea. Ideas with the highest rating can be implemented in the product.

Check out the Create a Feature Request guide for more information.
New Here?
Join us and watch the welcome video:
Announcements