gpt4 book ai didi

testing - Espresso 测试 : How to open my application back after opening the recent apps?

转载 作者:行者123 更新时间:2023-11-28 20:28:46 26 4
gpt4 key购买 nike

我想在通过调用 pressRecentApps() 方法打开最近的应用程序后,在编写 Espresso 测试用例时重新打开我的应用程序。除了通过坐标模拟点击之外,还有其他方法可以做到这一点吗?

最佳答案

我会说你不能。一旦您的应用失去焦点,您就倒霉了。

您可以使用 UI Automator为此。

关于testing - Espresso 测试 : How to open my application back after opening the recent apps?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40088210/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com