简体   繁体   中英

Espresso Soft Keyboard Type

Using Espresso can we validate which type of Soft Keyboard appears when we select a particular input field. For Example let we select Mobile Number - EditText it must display numeric keyboard. Can we validate it with Espresso?

Espresso just run on Single application. All view must belong to current activity . Since Keyboard is belong to System , Espresso is unable to check it. You could use it uiautomator inside your Espresso test case! I don't try it yet but I think it could be help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM