Closed
Bug 488823
Opened 16 years ago
Closed 12 years ago
[IDE] Inspector/Recorder should only obey label attributes for elements if no other path is available
Categories
(Testing Graveyard :: Mozmill, defect, P4)
Testing Graveyard
Mozmill
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: whimboo, Unassigned)
Details
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b4pre) Gecko/20090416 Shiretoko/3.5b4pre ID:20090416030924 and Mozmill trunk
Running a test which was created by the recorder or by copying the inspector output, uses the lookup method on an element which has a label attribute in its query string. As result the function will fail on all localized builds. See the following example for the content pane of the preferences window:
new elementslib.Lookup(controller.window.document, '/id("BrowserPreferences")/anon({"orient":"vertical"})/anon({"anonid":"selector"})/{"pane":"paneContent","label":"Inhalt"}')
You can fix it by simply removing the label entry from the above query string:
new elementslib.Lookup(controller.window.document, '/id("BrowserPreferences")/anon({"orient":"vertical"})/anon({"anonid":"selector"})/{"pane":"paneContent"}')
We should never rely on labels! That makes us impossible to run tests on localized builds.
Mikeal, how difficult is it to remove this behavior from the inspector and recorder?
Reporter | ||
Comment 1•16 years ago
|
||
Does not block us from writing tests. You only have to know that the label entry has to be removed. P4.
Priority: -- → P4
Reporter | ||
Updated•15 years ago
|
Summary: Inspector/Recorder should never obey label attributes for elements → Inspector/Recorder should only obey label attributes for elements if no other path is available
Comment 2•15 years ago
|
||
We need a way to ask if a given attribute was localized, if we can do that we can add this feature without a huge amount of work.
Summary: Inspector/Recorder should only obey label attributes for elements if no other path is available → Inspector/Recorder should never obey label attributes for elements
Reporter | ||
Comment 3•15 years ago
|
||
(In reply to comment #2)
> We need a way to ask if a given attribute was localized, if we can do that we
> can add this feature without a huge amount of work.
Axel, would there be a way we can accomplish this with Mozmill?
Summary: Inspector/Recorder should never obey label attributes for elements → Inspector/Recorder should only obey label attributes for elements if no other path is available
Reporter | ||
Updated•15 years ago
|
Summary: Inspector/Recorder should only obey label attributes for elements if no other path is available → [IDE] Inspector/Recorder should only obey label attributes for elements if no other path is available
Reporter | ||
Comment 4•12 years ago
|
||
We have dropped support for the Mozmill IDE in the upcoming Mozmill 2.0 release. Therefore it finally has been removed from the extension by bug 791625. Closing the bug as WONTFIX.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•8 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•