Ask a Question

Getting Xpath from Object Spy Tool

Getting Xpath from Object Spy Tool

In my current project, we required to get the XPath for an object but test complete does not have any option to get the XPath from the object spy. Every time we have to get the XPath from browser developer tool it is a very time-consuming process. Can you please get the XPath of an object in the tool itself by integrating with object spy.





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 '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:




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: Implemented
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?
Welcome to the Community
Sign Up Here