try typing some text into that area, then select it with the IE
Developer toolbar (or firebug) and see what you find.

it might be that you just need to set the innertext property on the
element that's holding the text

something along these lines for example might work.    but you need to
make sure what's containing the text so you are trying to set the
property on the right element.

browser.frame(:id, 'eEditorArea').span(:class, 'feature').setproperty
('innerText', 'what you want to type')


On Apr 21, 12:03 am, Lena <caty.c...@gmail.com> wrote:
> I am new to Watir and am writing a test script for CMS that uses FCK
> editor.  This is probably relate to a recent 
> posthttp://groups.google.com/group/watir-general/browse_thread/thread/eef...
>
> The CMS has two tables inside the editor area.  I am trying to add
> text to the first field (<span class="feature"></span>).  The html
> code looks like this:
>
> <iframe id="data___Frame" height="300" frameborder="no" width="100%"
> scrolling="no" src="/admin/fckeditor/editor/fckeditor.html?
> InstanceName=data&Toolbar=Default">
> <html>
> <head>
> <body style="....">
> <table height="100%" cellspacing="0" cellpadding="0" border="0"
> width="100%" style="table-layout: fixed;">
> <tbody>
> <tr>
> <tr id="eWysiwyg">
> <td id="eWysiwygCell" height="100%" valign="top">
> <iframe id="eEditorArea" height="225" frameborder="no" width="100%"
> src="fckblank.html" name="eEditorArea">
> <html>
> <head>
> <body>
> <table cellspacing="10" cellpadding="0" border="0" width="100%"
> _moz_resizing="true">
> <tbody>
> <tr>
> <td>
> <span class="feature"> </span>
> </td>
> </tr>
> <tr>
> <td class="welcome3">
> </td>
> </tr>
>
> I can add text to the main editor body but I couldn't get to the
> embedded ones namely <span class="feature"></span> and <td
> class="welcome3">.
>
> Thanks in advance,
> Lena
--~--~---------~--~----~------------~-------~--~----~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to