Closed
Bug 816643
Opened 12 years ago
Closed 11 years ago
Calling click() or tap() some elements does not execute any event
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: aaronmt, Unassigned)
References
Details
Attachments
(1 file)
5.99 KB,
text/plain
|
Details |
I have been working on a Gaia UI test for Everything.Me[1], trying to launch a shortcut-category (essentially a group of <li> elements) by clicking on any such category such as 'Social' (locators are seen in the test). I'm currently puzzled and or stuck trying to figure out why a click() or tap() is not following through on launching a category of applications (keep http://mxr.mozilla.org/gaia/source/apps/homescreen/everything.me/modules/Shortcuts/Shortcuts.js#295 open as a reference) -- shortcuts[0].click() or self.marionette.tap(shortcuts[0]) in an attempt to launch the Social category (in my test). In the Gaia application code for the shortcut module, it looks like a `click()` event is bound to the element [1] if `ontouchstart` is not in `window` (how would one verify this?). [1] https://github.com/AaronMT/gaia-ui-tests-mozilla/blob/test_everythingme/gaiatest/tests/test_everythingme.py [2] http://mxr.mozilla.org/gaia/source/apps/homescreen/everything.me/modules/Shortcuts/Shortcuts.js#304 I have attached the page-source for what a category in Everything.
Reporter | ||
Updated•12 years ago
|
Attachment #686719 -
Attachment mime type: text/html → text/plain
Comment 1•12 years ago
|
||
I spent a good 30 mins on this yesterday and I couldn't get it to work. I mostly just checked the page state (check it's completely loaded) and clicking on all of the child elements. The only other thing that occured to me afterwards was to check the position and size of the element we're clicking incase there's something going wrong there.
Reporter | ||
Comment 2•12 years ago
|
||
No luck with gesture tapping either
Summary: Calling click() on some elements does not execute any event → Calling click() or tap() some elements does not execute any event
Comment 3•11 years ago
|
||
This works now using tap after the recent changes to events in Gaia.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•1 year ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•