Bug #7206
closedsetObjectName does not update id/name on wt 4
0%
Description
In wt version 3 setting an object name with: ``setObjectName`` had also the impact of setting the id to "name_autogenerated-unique-id".
I used this fact in test scripts for selenium by searching via xpath: ``[starts-with(@id, 'userid_')]``.
Because the documentation does not state anymore that this is prepended onto the id its likely not a bug.
I suggest adding a notice in the "other changes" section of the changelog.
Updated by Roel Standaert about 5 years ago
I can add a mention of that in the changelog.
What actually changed is it no longer influences the id (which is good, because you don't want to touch the id), but it now is in an extra attribute (data-object-name
). You can still target it with Selenium and we actually updated the selenium locators to reflect that (selenium/wtLocators.js
in the Wt source code).
Updated by Roel Standaert about 5 years ago
I added it to the release notes (but not on the website yet).
Updated by Roel Standaert about 5 years ago
- Status changed from Resolved to Closed