Appium appium 更新至 v1.6.4 后 by_name 方法不能用了?用什么代替?

皆非 · September 02, 2017 · Last by 皆非 replied at September 02, 2017 · 1176 hits
self.driver.find_element_by_name('意见反馈').click()

写个测试的代码,报错如下

selenium.common.exceptions.InvalidSelectorException: Message: Locator Strategy 'name' is not supported for this session
共收到 1 条回复 时间 点赞

查找资料得知,v1.6 by_name 已不支持!

皆非 关闭了讨论 02 Sep 22:04
需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up