获取toast值
/**
* 獲取Toast的String值
* @return
*/
public String getToast(int timeout){
TextView toastTextView = null;
String toastText = "";
long endTime = SystemClock.uptimeMillis() + timeout;
while(SystemClock.uptimeMillis() < endTime){
toastTextView = (TextView) solo.getView("message", 0);
if(null != toastTextView){
toastText = toastTextView.getText().toString();
break;
}else {
solo.sleep(10);
}
}
原網址鏈接:http://www.2cto.com/kf/201502/374776.html
?
轉載于:https://www.cnblogs.com/qingo/p/5783704.html
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
- 上一篇: docker镜像
- 下一篇: 微信小程序商城毕业设计毕设作品(8)毕业