Krishnakant
Krishnakant

Reputation: 1523

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?

Upvotes: 0

Views: 1901

Answers (1)

ThaiPD
ThaiPD

Reputation: 3761

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.

Upvotes: 5

Related Questions