感谢维护者 @mingway_hu
#8 楼 @sunrise @chenhengjie123 一开始没发现 mac 这么不好用,就虚拟了一个 windows。。。。
#11 楼 @daibiao83 贴下你的代码吧。
#8 楼 @chenhengjie123 用 testerhome 的 android 客户端就可以了。 帖子那里就是用的 floating action button
@chenhengjie123 遇到过这种问题吗?
@carl 建议你再运行一次,然后看看你的 test runner 是哪个?
com.android.builder.testing.ConnectedDevice > No tests found.[Nexus 5 - 6.0] FAILED
No tests found. This usually means that your test classes are not in the form that your test runner expects (e.g. don't inherit from TestCase or lack @Test annotations).
:app:connectedDebugAndroidTest FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:connectedDebugAndroidTest'.
There were failing tests. See the report at: file:///Users/lihuazhang/code/Uiautomator2/app/build/reports/androidTests/connected/index.html
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
#3 楼 @daibiao83 关键我不知道你说的找不到 webview 是个什么样子的场景
#1 楼 @daibiao83 switch_to.context 并不是你想象的真正的切进去,而是拿到和 webview 之间的调试通道,你拿不到的原因和 floating xxx 没有关系。要看你的 webview 能否调试。
二、现象分析中第一张图的分析结论是啥啊?
提个小建议,行文过程中,段落尽量控制在 300 字以内。
让人忍不住打赏。。。
学习 swift 啦。
@wanglha 王先森,只有一个错误的 message,还有其他的细节吗?
排版
testerhome 已经申请。