Closed Bug 1388812 Opened 7 years ago Closed 6 years ago

sendKeysToElement does not send Keys.SPACE (u'\ue00d')

Categories

(Remote Protocol :: Marionette, defect, P2)

Version 3
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1068733

People

(Reporter: impossibus, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

See also https://github.com/mozilla/geckodriver/issues/846

Minimal-ish failing testcase (based on test_text.py):

    def test_space_key(self):
        test_html = self.marionette.absolute_url("javascriptPage.html")
        self.marionette.navigate(test_html)
        key_reporter = self.marionette.find_element(By.ID, "keyReporter")
        key_reporter.send_keys(Keys.SPACE)

        self.assertEqual(" ", key_reporter.get_property("value"))
Attached file gecko.log
verbose log from running test_space_key
Note that the sending a keydown with u'\ue00d' to the performActions endpoint works correctly. Both performActions and sendKeysToElement ultimately call down to event.sendSingleKey, so maybe the difference is in how a11y is used for element interaction? Wild guess.
Priority: -- → P3
OS: Unspecified → All
Priority: P3 → P2
Hardware: Unspecified → All
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: