Reputation: 41
I'm using selenium 2.0b3 and ruby to test send email function with tinymce and this is my problem: I can't type text into tinymce text area. Here is my code:
select_frame("message_content_ifr")
focus("tinymce")
type("tinymce", "test")
select_frame("relative=parent")
It still works fine with firefox 3.6.8 but not with IE9. As I see, select_frame() and focus() work but can't type any text into the area.
Anybody knows the reason?
Upvotes: 1
Views: 1114
Reputation: 31
I have found a solution using rspec/selenium for IE8. select_frame/focus/type.... works in Firefox and Chrome, but would not work in IE.
This line is calling javascript:
page.get_eval("selenium.browserbot.getCurrentWindow().tinyMCE.activeEditor.setContent('Replace with your text')")
Upvotes: 3