I’m just starting to work with TestProject, and I’m trying to adapt our DOM generating framework to generate unique ID’s for all the elements, so that generating a test is easier for the recorder; at least that is the idea.
My problem is surely quite basic: suppose I have a main DIV with a unique ID that inside has a couple of nested divs and the inner one has a click handler. When I record a test, my goal would be to get a step definined by click on element with ID, or at least, click on elementWithID/DIV/DIV, but instead by default I get an XPath selector defining something like click on div/div/div.
How can I change this behaviour, if possible, so that test recording takes ID’s more into account when recording a test, if not in the interacting element itself, at least looking up the tree for an element with a unique ID.
The structure of our page is quite likely to change quite often, not so the IDs of each element, so that’s why I’m trying to get this.
Thanks, and congratulations for your project