This is an interesting problem. Has anybody solved this? This is essentially
an iframe that contains event handlers for dynamically adding text to an
HTML document. This javascript editor is named TineMCE. I also know of
FCKEditor that works the same way -- these are also similar to Google's
GMail composition editor. Basically you use a send or set command if it were
an actualy text box, but it isn't, and set or send don't really exist for
the iframe (IE::frame).
Nathan
On Mon, Oct 13, 2008 at 12:17 AM, wesley chen <[EMAIL PROTECTED]> wrote:
> Please see the picture attached
> I can input text into the frame by the following code:
> ie.document.getElementById("mce_editor_0").contentWindow.focus()
> ie.send_keys(str)
>
> 1. How to clear the text in the textarea?
> I just know: ie.send_keys("{bs 30}"), it means send "Backspace" key 30
> times, How to send "LCtrl +A" then "Delete"? Any other better way such as
> set("")?
>
> 2. How can i get the text in the text area?
>
>
> Any suggestion would be appreciated.
>
> Wesley.
>
> --:)
> Man should be hard to himself, but tolerant to others.
>
> >
>
--
Nathan Lane
Home, http://www.nathandelane.com
Blog, http://nathandelane.blogspot.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---