UI Automator Viewer 哪里可以输入 xpath 以后,点亮显示响应的控件吗?
还有个问题关于 xpath,下面 2 个是否相同呢? element1 = $driver.find_element(:xpath, "//[contains(@resource-id,'#{id}') and @text = '#{text}']/../") element2 = $driver.find_element(:xpath, "//[contains(@resource-id,'#{id}') and @text = '#{text}']/preceding-sibling::[1]")