获取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);
}
}
原網(wǎng)址鏈接:http://www.2cto.com/kf/201502/374776.html
?
轉(zhuǎn)載于:https://www.cnblogs.com/qingo/p/5783704.html
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎勵來咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎總結(jié)
- 上一篇: docker镜像
- 下一篇: 微信小程序商城毕业设计毕设作品(8)毕业