十三、Python+appium获取Toast内容

   需要获取到toast弹框内容   改toast弹框的属性有class等 1.可通过class属性,使用xpath定位 text = self.find_element_xpath('//*[@class="android.widget.Toast"]').text 2.若上面的定位不到,可加一属性 text = self.find_element_by_xpath('//*[@class="
相关文章
相关标签/搜索