On 6/8/07, Catalin Hritcu <catalin.hritcu(a)gmail.com> wrote:
10) Small enhancements to the the XWiki user interface (for example
adding IDs to elements) would make it more easily testable and the
tests less fragile. Selectors like //div[4]/a/strong for the delete
button should never be used in our tests.
I try to minimize the use of id-s, as they have little semantics.
Instead, we should use 'role', 'class' and 'name', and only have
an id
for elements that we are sure they will always be unique. For example,
the cancel/preview/save buttons aren't unique, as in some
editors/skins they are both before and after the editable content.
But I also agree that stuff like div[4]//li[5]/span/a is not a good
way of working. Complain about this in a JIRA issue and link it to the
skin cleanup task.
Sergiu
--
http://purl.org/net/sergiu