Closed Bug 869688 Opened 11 years ago Closed 10 years ago

Click works but tap does not on msg textarea in Messages app

Categories

(Remote Protocol :: Marionette, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: bsilverberg, Unassigned)

References

Details

(Whiteboard: [touch])

I need to tap/click on the element at https://github.com/mozilla-b2g/gaia/blob/v1-train/apps/sms/index.html#L130 during a test of the keyboard. I can focus on this element with element.click(), but it does nothing if I try element.tap() or marionette.tap(element).

The test code is at https://github.com/mozilla/gaia-ui-tests/blob/master/gaiatest/tests/test_keyboard.py
No longer depends on: 869041
The test referenced above has been changed to not use the Messages app, but there is another test that demonstrates this same problem: https://github.com/mozilla/gaia-ui-tests/blob/master/gaiatest/tests/test_sms.py

Note that there is a pull request open for that test at the moment, but once it is updated you will see a TODO to switch a click back to a tap, and that's this problem.
On a sidenote: this means you have to use the keyboard to type a text or the 'Send' button is never enabled (you can't just use 'send_keys()').
Currently to get around this I'm using the keyboard for the first letter of the message ("p_msg[:1]" in python), then using "el.send_keys(p_msg[1:])" for the rest because the keyboard's too slow to use for all of it (especially for our 160 character sms test! ;o).
Thanks for the tip, Roy. I ended up using send_keys and then just clicking on the text input to enable the send button.
Blocks: 869034
No longer depends on: 869034
Whiteboard: [touch]
Current test implementation shows that this bug is no longer relevant.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.