Skip to content

Instantly share code, notes, and snippets.

@nowk
Last active December 12, 2015 08:29
Show Gist options
  • Save nowk/4744106 to your computer and use it in GitHub Desktop.
Save nowk/4744106 to your computer and use it in GitHub Desktop.
Capybara fills in TinyMCE
def fill_in_tinymce(frame_id, options)
page.execute_script(%{tinyMCE.editors['tinymce-#{frame_id}'].setContent('#{options[:with]}')})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment