Closed
Bug 537166
Opened 15 years ago
Closed 15 years ago
Elementslib.lookup fails for anonymous access via array index
Categories
(Testing Graveyard :: Mozmill, defect)
Testing Graveyard
Mozmill
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 477079
People
(Reporter: Tobbi, Unassigned)
Details
Attachments
(1 file)
(deleted),
text/javascript
|
Details |
When trying to access a tab to click it, I'm using the code that's attached. However, accessing an element via it's index fails with an error message.
Reporter | ||
Updated•15 years ago
|
Attachment #419484 -
Attachment mime type: text/x-c → text/javascript
Comment 1•15 years ago
|
||
The problem here is that we are not able to look inside XBL elements. So it's not only a templetized tree problem.
The solution for now is like you can see in the following:
var testGettingTabViaIndex = function()
{
controller = mozmill.getBrowserController();
var tabs = new elementslib.Lookup(controller.window.document,'/id("main-window")/id("browser")/id("appcontent")/id("content")/anon({"anonid":"tabbox"})/anon({"anonid":"strip"})/anon({"anonid":"tabcontainer"})');
var firstTab = new elementslib.Elem(tabs.getNode().getItemAtIndex(0));
controller.mouseDown(firstTab, 1);
controller.mouseUp(firstTab, 1);
}
I will mark it as dupe of bug 477079 (which is the templetized tree issue).
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
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
•