事由

Appium 1.6.3 版本获取的控件树含很多的 other 这样的 element,导致生成的 xpath 与 Appium 1.4.13 版本生成的 xpath 相差太多,不能兼容。

同一个控件的 xpath:
1.6.3: //XCUIElementTypeApplication[1]/XCUIElementTypeWindow[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeButton[2]
1.4.13:
//UIAApplication[1]/UIAWindow[1]/UIAButton[3]

提问

大家是怎么做的?可以做到完全互相兼容吗?


↙↙↙阅读原文可查看相关链接,并与作者交流