Skip to content

Instantly share code, notes, and snippets.

@wapcaplet
Created January 5, 2012 15:48
Show Gist options
  • Save wapcaplet/1565793 to your computer and use it in GitHub Desktop.
Save wapcaplet/1565793 to your computer and use it in GitHub Desktop.
# Enter text in a tinymce editor widget. +iframe_id+ is the
# HTML id of the +iframe+ element containing the editor.
def fill_in_tinymce(iframe_id, text)
within_frame(iframe_id) do
editor = page.find_by_id('tinymce').native
editor.send_keys(text)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment