One option to clear the text area is:
ie.send_keys("^a"); ie.send_keys("{delete}");

On Oct 13, 1: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.
>
>  Frame.jpg
> 93KViewDownload
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to