There's not much of a article on it, it's simply grabbing the document (the
com object that holds the dom of the element) and working with it.
http://msdn.microsoft.com/en-us/library/ms533054(VS.85).aspx
In this case you've got a similar situation as the editor example on
tinymce's site and that's exactly what I used for that one. My previous
example was the simple editor. So if you look at the structure in IE dev
toolbar, this page has an iframe with an html document inside of it, with a
body and various other html elements.
2008/10/14 wesley chen <[EMAIL PROTECTED]>
> 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。
>
> >
>
--
Charley Baker
blog: http://charleybakersblog.blogspot.com/
Project Manager, Watir, http://wtr.rubyforge.org
QA Architect, Gap Inc Direct
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---