我想验证是否在Android App Insuplumentation中显示了敬酒消息,我正在使用Appium 1.6.3来执行此操作。我已经检查了许多链接,但找不到解决方案,有人可以建议解决方案。
来自Appium版本1.6.3支持吐司消息,因为您需要使用automationName:'uiautomator2'.
toast = driver.find_element(:xpath, "//android.widget.Toast[1]")
if toast.text == "Hello"
,但我不建议这样做,因为uiautomator2尚不稳定。