[英]Espresso test fails due to Android message `Viewing full screen, To exit, swipe down from the top`
[英]Android espresso test full screen message
在運行測試用例之前,您可以使用 Espresso 庫中的 containsString() 來查找屏幕上顯示的文本。 如果存在,則在按鈕或外部執行單擊操作。
在 TextView 的方法中使用 containsString:
textView.check(matches(withText(containsString("Test"))));
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.