I mean the conts[] contains chinese characters, watir can input the
right ones but the firewatir input to the web form with messy ones.

On 11月9日, 上午12时36分, jnxgn <[EMAIL PROTECTED]> wrote:
> It seemed that firewatir 1.6.2 does not support chinese charaters
> well, the following codes work at watir but failed at firewatir:
>
> # initialize the contents
> conts = []
> File.open('contents.txt') do |f|
>   f.each_line{|l| conts << l}
> end
>
> .........
> .........
>
> ie77.text_field(:name,
> 'HTML_speak_Content').set(conts[rand(conts.size)])
>
> I also tried but failed for firewatir:
>
> tmp_contents = conts[rand(conts.size)]
> ie77.text_field(:name, 'HTML_speak_Content').value = tmp_contents
--~--~---------~--~----~------------~-------~--~----~
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