logo
  • 教程列表
  • SO官方文档
  • 开始使用 android-espresso
    • 检查选项菜单项(使用 Spoon 来截取屏幕截图)
    • 查看测试
    • 按 ID 查找一些视图
    • 按文字查找视图
    • Hello World Espresso 示例
    • Espresso 设置说明
  1. StackOverflow 文档
  2. android-espresso 教程
  3. 开始使用 android-espresso
  4. 查看测试

查看测试

Created: November-22, 2018

onView(withId(R.id.greet_button)) // withId(R.id.my_view) is a ViewMatcher
.perform(click())                 // click() is a ViewAction
.check(matches(not(isEnabled())); // matches(isEnabled()) is a ViewAssertion
  • 按 ID 查找一些视图
  • 检查选项菜单项(使用 Spoon 来截取屏幕截图)

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明