Can anybody tell me how can i use the keyboard keys while automating the mobile apps. I want to press the go button in mobile keyboard while making the script.
hi,
use Mobile.tapAtPosition(1075, 1900, FailureHandling.OPTIONAL)
try it.
Hi,
Can anybody tell me how can i use keyboard keys while automating the mobile apps without tapping at particular position, it may be varied device to device X&Y co-ordinates in that case how to handle keyboard keys is there any alternative for this.please reply ASAP
On Android, you can interact with the keyboard through:
AndroidDriver<?> driver = MobileDriverFactory.getDriver()
driver.pressKeyCode(AndroidKeyCode.ENTER)
Where AndroidKeyCode is an enum with all of the possible key entries (there are a lot more keys available).