Skip to content

Instantly share code, notes, and snippets.

@hoasung01
Forked from racheldonovan/wysihtml5_helper.rb
Created February 24, 2014 02:28
Show Gist options
  • Save hoasung01/9180932 to your computer and use it in GitHub Desktop.
Save hoasung01/9180932 to your computer and use it in GitHub Desktop.
module Wysihtml5Helper
def fill_in_wysihtml5(text)
#js must be enabled
page.execute_script("editor.setValue('#{text}')")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment