[wtr-general] Re: How to enter the Chinese characters into the textfield of a webpage by firewatir 1.6.5
Thanks a lot, I had tried before but it did not work. On 1月19日, 上午10时45分, Wesley Chen cjq@gmail.com wrote: Try: $ie.text_field(:name, keyword).value = 你好 I have not replaced anything. Thanks. Wesley Chen. For life, the easier, the better. On Tue, Jan 19, 2010 at 12:11 AM, jnxgn s...@jnxgn.cn wrote: I cannot figure out how to enter the Chinese characters into the textfield of a webpage by firewatir 1.6.5, I tried to change the encoding of the .rb file and the encoding of the firefox browser, but failed. require ‘rubygems’ require ‘firewatir’ ff = FireWatir::Firefox.new ff.goto “http://www.google.com“ sleep 1 ff.text_field(:name, ‘q’).set('电') For Watir 1.6.5, the Chinese charaters can be supported by replacing the script WIN32OLE.codepage = WIN32OLE::CP_UTF8 with WIN32OLE.codepage = WIN32OLE::CP_ACP in the file of C:\Ruby\lib\ruby \gems\1.8\gems\watir-1.6.5\lib\watir\win32ole.rb -- 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- 隐藏被引用文字 - - 显示引用的文字 - -- 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
Re: [wtr-general] Re: How to enter the Chinese characters into the textfield of a webpage by firewatir 1.6.5
I use netbeans editor, it works. If you use different editor, please make sure the character set is right in the editor settings. Thanks. Wesley Chen. For life, the easier, the better. On Tue, Jan 19, 2010 at 7:32 PM, jnxgn s...@jnxgn.cn wrote: Thanks a lot, I had tried before but it did not work. On 1月19日, 上午10时45分, Wesley Chen cjq@gmail.com wrote: Try: $ie.text_field(:name, keyword).value = 你好 I have not replaced anything. Thanks. Wesley Chen. For life, the easier, the better. On Tue, Jan 19, 2010 at 12:11 AM, jnxgn s...@jnxgn.cn wrote: I cannot figure out how to enter the Chinese characters into the textfield of a webpage by firewatir 1.6.5, I tried to change the encoding of the .rb file and the encoding of the firefox browser, but failed. require ‘rubygems’ require ‘firewatir’ ff = FireWatir::Firefox.new ff.goto “http://www.google.com“ sleep 1 ff.text_field(:name, ‘q’).set('电') For Watir 1.6.5, the Chinese charaters can be supported by replacing the script WIN32OLE.codepage = WIN32OLE::CP_UTF8 with WIN32OLE.codepage = WIN32OLE::CP_ACP in the file of C:\Ruby\lib\ruby \gems\1.8\gems\watir-1.6.5\lib\watir\win32ole.rb -- 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- 隐藏被引用文字 - - 显示引用的文字 - -- 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 -- 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
[wtr-general] Re: How to enter the Chinese characters into the textfield of a webpage by firewatir 1.6.5
Thanks a lot, I tried netbeans but failed after reading your post. Maybe operating systems and the encoding of firefox also counts, could you tell me what is your operating system and the encoding of your firefox. Best Wishes, On 1月20日, 上午10时53分, Wesley Chen cjq@gmail.com wrote: I use netbeans editor, it works. If you use different editor, please make sure the character set is right in the editor settings. Thanks. Wesley Chen. For life, the easier, the better. On Tue, Jan 19, 2010 at 7:32 PM, jnxgn s...@jnxgn.cn wrote: Thanks a lot, I had tried before but it did not work. On 1月19日, 上午10时45分, Wesley Chen cjq@gmail.com wrote: Try: $ie.text_field(:name, keyword).value = 你好 I have not replaced anything. Thanks. Wesley Chen. For life, the easier, the better. On Tue, Jan 19, 2010 at 12:11 AM, jnxgn s...@jnxgn.cn wrote: I cannot figure out how to enter the Chinese characters into the textfield of a webpage by firewatir 1.6.5, I tried to change the encoding of the .rb file and the encoding of the firefox browser, but failed. require ‘rubygems’ require ‘firewatir’ ff = FireWatir::Firefox.new ff.goto “http://www.google.com“ sleep 1 ff.text_field(:name, ‘q’).set('电') For Watir 1.6.5, the Chinese charaters can be supported by replacing the script WIN32OLE.codepage = WIN32OLE::CP_UTF8 with WIN32OLE.codepage = WIN32OLE::CP_ACP in the file of C:\Ruby\lib\ruby \gems\1.8\gems\watir-1.6.5\lib\watir\win32ole.rb -- 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-隐藏被引用文字 - - 显示引用的文字 - -- 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- 隐藏被引用文字 - - 显示引用的文字 - -- 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