Closed Bug 514944 Opened 15 years ago Closed 14 years ago

Unable to access custom recurrence daypicker

Categories

(Testing Graveyard :: Mozmill, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: merike, Unassigned)

References

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; et; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)
Build Identifier: r551

Montly recursion tests III, IV and V (https://wiki.mozilla.org/Calendar:QA/Automation_Phase_2) depend on picking specific days from daypicker, but I'm unable to access it.

Last accessible element is anon({"class":"groupbox-body"}) element and it seems to have no accessible child elements because the last line of the testcase fails. DOM inspector however shows that there should be more.

Mozmill's inspector gives me new elementslib.ID(controller.window.document, "monthly-days") which I can't use as specific cells need to be clicked. Recorder records nothing for these clicks.

Reproducible: Always

Steps to Reproduce:
1. Run attached testcase
2. Observe only first assert working

Actual Results:  
fail :: Expression "[0]" returned null. Anonymous == false
Attached file Testcase
Attached image DOM inspector view
daypicker is listed twice. Of which type is this node?
(In reply to comment #3)
> daypicker is listed twice. Of which type is this node?
There's actually 7 of these on a row: http://mxr.mozilla.org/comm-central/source/calendar/base/content/calendar-daypicker.xml#208
Appears to be a button: http://mxr.mozilla.org/comm-central/source/calendar/base/content/calendar-daypicker.xml#50
I don't have Lightning installed. Clint, could you have a look at it?
Blocks: 511193
So daypicker is an XBL Binding. You should be able to operate on those elements when you first get the datepicker itself via id or querySelector and then run a getAnonymousXXX function. Something what we are doing in dom-utils.js:

http://hg.mozilla.org/qa/mozmill-tests/file/default/shared-modules/dom-utils.js#l608
This nodeCollector.queryAnonymousNodes functionality is so cool! Querying by numeric date label works very well for daypickers :).
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
OS: Windows 7 → All
Hardware: x86 → All
Resolution: --- → FIXED
Expect some more improvements in the next couple of weeks. :) Thanks for your feedback.
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: