I have trouble with using capybara to test tinymce form. I\'m using tinymce-rails and have 7 editors in my form. Also I\'m using asciimath plugin with tinymce.
Everythin
I had the same issue. After a day fighting, my tests finally passed.
The code that I am using is:
within_frame("producto_condiciones_ifr") do
editor = page.find_by_id('tinymce')
editor.native.send_keys 'filling text'
end
The first line is a method of capybara. The parameter passed is the ID of the iframe.
Line #2 is a must.
In line #3 goes the text that you wish to place inside TinyMCE