Skip to content

Instantly share code, notes, and snippets.

@hoosteeno
Created April 14, 2016 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoosteeno/f79c397f12c2719ae3c6197e62e24932 to your computer and use it in GitHub Desktop.
Save hoosteeno/f79c397f12c2719ae3c6197e62e24932 to your computer and use it in GitHub Desktop.
if on_device:
# this event tells input's javascript that we
# are on fennec and came via a feedback prompt
fire_event = ('var e = document.createEvent("Events");'
'e.initEvent("FeedbackPrompted", true, false);'
'document.dispatchEvent(e);')
self.selenium.execute_script(fire_event)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment