【发布时间】:2019-11-02 02:10:36
【问题描述】:
所以我有我正在测试的应用程序,我有这个条件,我有element,我想罚款它的孩子。
我的element:
element = elements[0]
子元素是XCUIElementTypeButton(第一个孩子),这是我尝试过的:
son = element.find_element_by_xpath('/XCUIElementTypeButton')
或者
son = element.find_element_by_xpath('//XCUIElementTypeButton')
所以我尝试了这两种工作,但没有收到任何NoSuchElementException。
有什么建议吗?
【问题讨论】: