Hillary,

See if specifying the ASCII code for the Carriage Return will work.
The Carriage Return is ASCII character 10.

Here an example in irb:

irb(main):006:0> puts"a" + 10.chr + "b" + 10.chr + "c"
a
b
c
=> nil

So you code would be:
b.text_field(:id, "x").set("a" + 10.chr + "b" + 10.chr + "c")


Joe

On Aug 15, 6:11 pm, hillary <weimar1...@gmail.com> wrote:
> I have a text area that allows the user to copy and past from a file values
> that are separated by a carriage return like this:
> a
> b
> c
>
> In watir, this code worked:
> b.text_field(:id, "x").set("a
> b
> c")
>
> But when i tried this in web-driver it doesn't anymore. It enters text but
> the values are no longer separated by a carriage return.
>
> I've tried everything in this 
> post<https://groups.google.com/d/topic/watir-general/SONhM3BnJD4/discussion>.
> And I can't use send_keys because the text area doesn't allow the user to
> use up, down, or enter/return.
>
> Does anyone have any ideas?

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to