应用本身建议的xpath不起作用
xpath : //[@accessibilityLabel=‘iconUncheck’ and (./preceding-sibling:: ./following-sibling::)[@id=‘Prod Test’]]
thee元素的
答案 0 :(得分:0)
尝试下面的xpath
:
//*[@class='UIAImage' and ./following-sibling::*[@class='UIAView' and contains(text(),'Bone Marrow')]]
或
//*[@class='UIAImage' and ./following-sibling::*[contains(text(),'Bone Marrow')]]