watij set inner Text

74 views
Skip to first unread message

marisa Quaresma

unread,
Jul 10, 2012, 6:38:17 AM7/10/12
to watij
Hello.

I have this piece of code in HTML:
<td class="col-left">Short description:<br /><br /><i>(appears in the
product lists and on the top of the product page)</i></td>

<td style="padding-bottom:5px;" class="translatable"> <div
class="lang_1" style="display: block;float: left;">
<textarea class="rte" cols="100" rows="10" id="description_short_1"
name="description_short_1"> </textarea>

And I need to set the inner text of the text area to Test for example.
I have tried everything but I can't make it work.

I have tried with this code but it doesn't work.
Tag sdesc = spec.find.textArea().with.id("description_short_1");
sdesc.set.innerText("Test");

I need to put the text like this:
<textarea class="rte" cols="100" rows="10" id="description_short_1"
name="description_short_1"> Test </textarea>

Can anyone tell me what I am doing wrong? Thanks.

Reply all
Reply to author
Forward
0 new messages