首页 > watir > watir在中文环境下使用xpath的一个注意事项

watir在中文环境下使用xpath的一个注意事项

2009年11月17日 发表评论 阅读评论

用了2年多的watir,总不能使用xpath,执行到xpath语句时,出现一大堆出错信息,如Missing end tag for……

偶然在网上发现,在程序开头加上如下语句即可解决问题:

require “win32ole”
WIN32OLE.codepage = WIN32OLE::CP_UTF8

本文原创于: http://www.sdgz.cn



分类: watir 标签:
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.
      
                  
      

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word