Appium mac 下面针对于一个 app 里面的元素的 xpath 需要使用什么工具才能看到呢?

roicel · November 29, 2013 · Last by 恒温 replied at November 29, 2013 · 2202 hits

mac 下面针对于一个 app 里面的元素的 xpath 需要使用什么工具才能看到呢?

共收到 2 条回复 时间 点赞

建议通读,https://github.com/appium/appium/blob/master/docs/cn/finding-elements.cn.md。不过其实就是普通的 xpath。和 网页的差不多。
https://github.com/appium/appium/tree/master/docs/cn这里的文档。

Appium 支持一个 Webdriver 元素定位方法的子集

find by "tag name" (i.e., 通过 UI 的控件类型)
find by "name" (i.e., 通过元素的文本, 标签, 或者开发同学添加的 id 标示, 比如 accessibilityIdentifier)
find by "xpath" (i.e., 具有一定约束的路径抽象标示, 基于 XPath 方式)

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