I need to assign a text value as the content of a Div, very similar to
Watir gmail example except, I don't have an iframe, just a Div, here
is the gmail example:

 # a body element.  So, save the iframe in a var, then set the
innerText
 # property of the iframe's body element.
 mail_body_frame = canvas_frame.frame(:index, 1)
 # TODO: there must be a friendlier way to do this, while still
avoiding
 # hardcoding of any unfriendly identifiers. Does Watir need a body
method?
 mail_body_frame.document.body.setproperty('innerText',
mail_body_text)

How do I accomplish the last part for a Div?

body_div = ie.div(:id, 'EditorBody')
body_div.setproperty('innerText', edit_content) -- this of course
doesn't work
ie.div(:id, 'EditorBody').set(edit_content) -- nor does this.

I would appreciate any suggestions, I just got started with watir,
what a great tool!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
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