Use send_event with postpone=True in webelem.click

For some reason, since 0557fea79e we're
getting segfaults in misc.feature...
This commit is contained in:
Florian Bruhin 2016-08-19 10:14:18 +02:00
parent 4362d42c50
commit 388d771a2e

View File

@ -384,7 +384,9 @@ class AbstractWebElement(collections.abc.MutableMapping):
]
for evt in events:
self._tab.send_event(evt)
# For some reason, postpone=True is needed here to *not* cause
# segfaults in misc.feature because of :fake-key later...
self._tab.send_event(evt, postpone=True)
def after_click():
"""Move cursor to end and reset override_target after clicking."""