I verified in Android 6.0.1 (Nexus Tab) also. Sendkeys are not working. Really worried, where is the problem.
Your Timely help is much appreciated. Thanks in advance.
Thanks for your response. I couldn’t use the above solution, as I am getting “can not cast from CraftDriver to AndroidDriver”, when I use the above code in my framework.
When I use
driver.getKeyboard().sendKeys(“1234”);, only one char is sitting in the first box, if i give
Bit curious to know, how enters in First field etccc… We are not associating any element with input fields right?
How exactly pressKeyCode works here? Is it that we needs to first click on first input field and then pressKeyCode enters value and move to the next field here?
Incase if i have to enter two letters in each input field how it work? Ex: entering out debit card grid in the field.
I didnt click on first field etcc… though all the 4 fields have unique id, i didnt mention it anywhere to click and pressKeyCode. Simply I added the below four line, fortunately it worked.