Appium python appium 编写测试用例时,发现不支持中文的对象识别,怎么办?

txq · 2014年05月16日 · 最后由 what_what 回复于 2015年08月04日 · 1074 次阅读

利用 python 的 appium,做 android 自动化测试,发现中文写进去之后是乱码,无法识别,怎么办?求高手回答

共收到 5 条回复 时间 点赞

@tonytam appium 只支持 subset of webdriver locator strategy,只支持 xpath,class.

试试在 python 源码中指定 utf-8

txq #3 · 2014年05月19日 Author

@532589730 这个方法可以

unicodeKeyboard':True

楼主你的问题解决了吗,我在 python 源码里加了 # -- coding: utf-8 --,还是不好使。你是怎么解决的

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册