Xamarin.UITest on Android: Dismiss keyboard with Entry.Completed -


i'm testing xamarin.forms app entry element. i'd enter text , dismiss keyboard raising entry.completed event. on ios working nicely iapp.pressenter. on android, however, inserts whitespace.

how can dismiss keyboard such entry.completed raised?

i imagine invoking backdoor method or executing methods on native views, couldn't work, yet. know how raise entry.completed programatically within xamarin.forms or xamarin.android?

oh, found solution , it's rather trivial.

while iapp interface has no method dismissing keyboard , raising entry.completed on android, there androidapp.pressuseraction() desired purpose. can write:

(app iosapp)?.pressenter(); (app androidapp)?.pressuseraction(); 

Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -