Last Updated: February 25, 2016
·
1.099K
· Lorin Hochstein

Interact with TinyMCE from Splinter

Splinter is a great library that sits on top of Selenium to simplify web automation.

Assuming the ID of the TinyMCE widget is id_content_ifr:

browser = splinter.browser.Browser('chrome')
browser.get_iframe('id_content_ifr') as iframe:
    iframe.find_by_tag('body').type('Text goes here')