Bug 1545142 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

In mozmill tests, to select by an element's class attribute, you have to include all of its classes in the selector string.  This is very brittle.  It would be better if you could write a selector for just one class that would match elements with that class among others.

A patch to do this (attached) was written as part of bug 1534774.  The patch worked for linux and windows, but apparently not on mac.  (See this try server run](https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=3cbd51497d917c5aedc29bbaf9f48127c6c66e93&selectedJob=237702193).)
In mozmill tests, to select by an element's class attribute, you have to include all of its classes in the selector string.  This is very brittle.  It would be better if you could write a selector for just one class that would match elements that had that class among others.

A patch to do this (attached) was written as part of bug 1534774.  The patch worked for linux and windows, but apparently not on mac.  (See this try server run](https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=3cbd51497d917c5aedc29bbaf9f48127c6c66e93&selectedJob=237702193).)
In mozmill tests, to select by an element's class attribute, you have to include all of its classes in the selector string.  This is very brittle.  It would be better if you could write a selector for just one class that would match elements that had that class among others.

I wrote a patch to do this (attached) while working on bug 1534774.  The patch worked for linux and windows, but apparently not on mac.  (See this [try server run](https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=3cbd51497d917c5aedc29bbaf9f48127c6c66e93&selectedJob=237702193).)  So I'm opening this bug for further work on this.

Back to Bug 1545142 Comment 0