Loading

appium元素定位-寻找上级元素

通过子节点找祖先(包括父亲)

//子节点/ancestor::祖先

map service: xpath=>//XCUIElementTypeStaticText[@label="地图服务"]/ancestor::XCUIElementTypeCell

通过子节点找父节点

//子节点/parent::父亲

//XCUIElementTypeStaticText[@label="内容特权"]/parent::XCUIElementTypeCell
posted @ 2024-04-15 16:14  Binzichen  阅读(2)  评论(0编辑  收藏  举报