Closed Bug 876664 Opened 11 years ago Closed 11 years ago

el.tap() and click() do not work on enabling bluetooth

Categories

(Remote Protocol :: Marionette, defect)

defect
Not set
normal

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
Depends on: 869034
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.
s/b1/el

sorry I was using b1 when I was testing locally.
This works fine now! Thanks Malini! :)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
That's... bizarre. I didn't make any changes, so I'm not sure who to thank for this:P
Blocks: 869034
No longer depends on: 869034
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.