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 har...
Name Mapping with XPath
DanNad
4 years agoContributor
prashantmohan
Example Element (unmute button):
Testcomplete has generated following xpaths:
The last 3 xpaths are useless. Assume the unmute button is clicked. In my case the custom attribute (data-test) changes to data-test='mute-control'.
I cant map the mute button as a new mapping object because it is getting recognized as "b_unmute" because of the last 3 xpaths.
So first i have to delete the 3 last xpaths and then i can map the button "b_mute"Also for the left over css selectors i delete 1 of them and sometimes i replace them with an xpath because for me it is more readable (also question here is why the mix up between css and xpath -> is using css selectors faster?). Using Css selectors over xpath indeed is considered better practice so the question is answered.
Related Content
- 4 years ago
- 13 years ago
- 5 years ago
- 2 years ago