Tinymce

Using the TinyMCE jQuery plugin with RSpec and Capybara

I needed to add TinyMCE to a form for WYSIWYG editing (which is what it’s for, of course), so I put the jQuery TinyMCE thing in. Unfortunately, adding TinyMCE to the textarea broke the RSpec tests, complaining bitterly that Selenium::WebDriver::Error::ElementNotVisibleError: Element is not currently visible and so may not be interacted with … which was no good at all. Scouring around the internet showed a lot of people who had had similar problems, but nothing quite spelled it out.