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

txq · May 16, 2014 · Last by what_what replied at August 04, 2015 · 1122 hits

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

共收到 5 条回复 时间 点赞

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

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

txq #3 · May 19, 2014 Author

@532589730 这个方法可以

unicodeKeyboard':True

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

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up