Issue
I'm trying to test a mobile application on android, I am trying to login but when I execute the sendkeys of the password, what happens is that the password is sent but for some reason writes an extra letter in the password (the letter is y), does anyone know what it can be? In username it writes everything right. thanks
MobileElement el2 = (MobileElement) driver.findElementById("password");
el2.sendKeys("DPY16085");
Solution
While entering the data in input field if your device or emulator keypad is open then this problem occurs the solution is you have to dismiss the keypad if you are entering the data using sendkeys you need to set this capabilities in DesiredCapabilities:
DesiredCapabilities dc = new DesiredCapabilities();
dc.setCapability("unicodeKeyboard", true);
dc.setCapability("resetKeyboard", true);
Answered By - Sourabh Charwande
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.