It works when I try the code below.

puts ie.frame(:id, /mce_editor_0/).document.body.innerhtml
It will put the html out.

puts ie.frame(:id, /mce_editor_0/).document.body.innerText
it will put the text out

in fact, we can locate the window by:
ie.frame(:id, /mce_editor_0/).document.body.focus
ie.send_keys("str")

I think ie.document.getElementById(:id, //).contentWindow.focus
equal to
ie.frame(:id, /mce_editor_0/).document.body.focus
but second one will be with higher efficiency

Hi, Charley,
would you please show some article or documents about document, body
attributes location?

Thanks in advance.

Wesley.
--:)
Man should be hard to himself, but tolerant to others。

--~--~---------~--~----~------------~-------~--~----~
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