我是Appium自动化的新手,我试图在代码中使用.getAttribute检索“索引”节点值,但无法检索。有任何方法可以检索特定元素定位器的索引吗?String x = driver.findElement(By.xpath("//android.widget.TextView[@text='"+str+"']/../..")).getAttribute
我正试图找到一个硒元素。但它错误地说:
Unable to locate an element with the xpath expression //li[normalize-space()='Don't check credit' on 'Document': The string '//li[normalize-space()='Don't check credit card BINs']' is not a va