Closed
Bug 876664
Opened 12 years ago
Closed 12 years ago
el.tap() and click() do not work on enabling bluetooth
Categories
(Remote Protocol :: Marionette, defect)
Remote Protocol
Marionette
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: AndreiH, Unassigned)
References
Details
Both el.tap() and click() don't work on the enabling bluetooth button.
marionette.tap(el) works.
This test
https://github.com/mozilla/gaia-ui-tests/blob/master/gaiatest/tests/settings/test_settings_bluetooth.py#L40
is accessing this element:
https://github.com/mozilla-b2g/gaia/blob/v1.0.1/apps/settings/index.html#L883
Comment 1•12 years ago
|
||
This problem is pretty bizarre, both marionette.tap(el) and el.tap() dispatch touch events against targets that aren't the original el. Neither of them are targeting the 'label' element that's retrieved, so neither of them are doing 'the right thing'.
if el is the element retrieved using b1 = m.find_element('css selector', '#bluetooth-status label'), ie: a label element, then marionette.tap(el) dispatches the touch events against an element other than the label element, I'm not sure which, and el.tap() dispatches events against bluetooth-enable-msg for some reason.
Comment 2•12 years ago
|
||
s/b1/el
sorry I was using b1 when I was testing locally.
Reporter | ||
Comment 3•12 years ago
|
||
This works fine now! Thanks Malini! :)
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Comment 4•12 years ago
|
||
That's... bizarre. I didn't make any changes, so I'm not sure who to thank for this:P
Updated•12 years ago
|
Updated•2 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•