Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 android 应用程序中,我有一个TextView带有文本的"[PC]".
TextView
"[PC]"
我正在尝试在 python 中使用 appium 查找该文本,如下所示
self.driver.find_element_by_xpath("//TextView[@text='[PC]']").
但它给出了错误消息:
u'An error occurred while searching for an element by XPath.'