【发布时间】:2017-03-12 15:19:18
【问题描述】:
Test 中有一个下拉列表。录音机点击打开选项下拉菜单。但是随后单击以选择一个失败并出现以下错误:
Caused by: java.lang.RuntimeException: Action will not be performed because the target view does not match one or more of the following constraints:
at least 90 percent of the view's area is displayed to the user.
这个问题Android Espresso error on button click 涉及约束,但它建议简单地使用 isCompletelyDisplayed() 不起作用。
【问题讨论】:
-
澄清一下:“picker”或“dropdown”是指微调器?你的微调器元素看起来如何?有多少可供选择?
-
这是一个简单的下拉菜单,不是选择器。是的,只是一个微调器。
标签: android android-espresso android-studio-2.3