onVIEw(withID(R.ID.actionbutton)).perform(customClick())
我的方法customClick:
fun customClick(): VIEwAction { return actionWithAssertions( CustomGeneralClickAction(Tap.SINGLE,GeneralLocation.VISIBLE_CENTER,Press.FINGER))}
还要创建具有一些更改的类CustomGeneralClickAction:
Matcher<VIEw> standardConstraint = isdisplayingAtLeast(60);
这个例子我从answer开始.
但有下一个错误:
androID.support.test.espresso.PerformException: Error performing ‘single click’ on vIEw ‘with ID: com.fentury.androID:ID/actionbutton’.
Caused by: androID.support.test.espresso.PerformException: Error performing ‘click (after 3 attempts)’ on vIEw ‘unkNown’.
还在这里:
at com.fentury.androID.acceptanceTests.utils.CustomGeneralClickAction.perform(CustomGeneralClickAction.java:79)
status = tapper.sendTap(uiController,coordinates,precision);解决方法 它应该是onVIEw(withID(R.ID.floating_action_button)).perform(click()); 总结
以上是内存溢出为你收集整理的android – 点击浓缩咖啡中的FloatingActionButton全部内容,希望文章能够帮你解决android – 点击浓缩咖啡中的FloatingActionButton所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)