I am trying to run my application with keyboard but when i do manually keyboard opens. But when i run automation it is not opening the keyboard while typing.
Do i need to pass any capability to open the keyboard ?
I am trying to run my application with keyboard but when i do manually keyboard opens. But when i run automation it is not opening the keyboard while typing.
Do i need to pass any capability to open the keyboard ?
Which device you are using, emulator or real device?
I am running on Emulator.
Real device I did not try. Is there any difference in this case ?
Hi Ramshankar,
You might have selected the option “Hardware Keyboard present” while creating/editing AVD. If you select it, the software keyboard will not pop-up when you click on the edit fields.
If you want to run it with software keyboard, select uncheck that option and while running your script, your script should first click on the edit field to pop open the keyboard. Then you can use send keys to enter value.
Make sure you close the keyboard pop-up after entering the value using driver.HideKeyboard or driver.navigate.back().
Thanks,
Jerald
Thanks for your nice reply.
But I am using genymotion emuator. There I get an option for use virtual keyboard for input that option i tried with both checked and unchecked. but not able to see the keyboard while using automation.
When use virtual keyboard for input is getting checked then manually click opens the keyboard but not with automation.
Thanks,
Ramshankar.
Ram,
Did you try clicking on the text field before sending value to that?
Yes. I do but keyboard is not coming up.
Are you setting unicodeKeyboard and resetKeyboard to true in the desired capabilities? The Unicode keyboard is software only and will hide it as well.