无法在Android应用程序上检测到Toast消息

时间:2021-06-11 04:52:37

I am using Appium for android app & i have to deal with Toast message. I am able to see toast message text but Uiautomator is not able to detect toast element. So it there any method available in Appium to deal with toast message.无法在Android应用程序上检测到Toast消息

我正在使用Appium for Android app&我必须处理Toast消息。我能够看到吐司消息文本,但Uiautomator无法检测到吐司元素。所以在Appium中有任何方法可以处理toast消息。

1 个解决方案

#1


Toast is designed to be fire and forget, there's no way to retrieve its status once show() is called.

Toast设计为fire and forget,一旦调用show(),就无法检索其状态。

#1


Toast is designed to be fire and forget, there's no way to retrieve its status once show() is called.

Toast设计为fire and forget,一旦调用show(),就无法检索其状态。