Is there a reason you are not using .set("chinesedata")  instead?

that is the preferred method to set the contents of a textfield

quoting from the RDoc for the .value=() method "Sets the value of the
text field directly. It causes no events to be fired or exceptions to
be raised, so generally shouldn't be used. It is preffered to use the
set method."

On May 3, 4:13 pm, Bhavesh <[email protected]> wrote:
> Hi,
>
> Im trying to insert text using ".value" method in watir script.
>
> I used like this.
>
> $ie.text_field(:id, $1).value=("ChineseData")
>
> When script executes, it shows this data in that text filed, but
> actually it is not inserted in the text filed.
>
> When i click submit, it throws error that filed is empty.
>
> What is the cause? how can i resolve this?
>
> I cannot use .set method as i have utf8 or special characters.
>
> Can someone help me out with this.
>
> Your help is appreciated.
>
> Thanks
> Bhavesh

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

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to