when try input email address "test@gmail.com" during doing android automation using appium, end "test2gmail.com". code following:
driver = new androiddriver(new url("http://127.0.0.1:4723/wd/hub"),capabilities); webelement email = driver.findelementby(...); email.sendkeys("test@gmail.com"); i tried:
webelement email = driver.findelementby(...); email.sendkeys("test"); email.click(); driver.sendkeyevent(77);//key code constant: '@' key. email.sendkeys("gmail.com"); it doesn't work either. can please me on this.
this happening me on galaxy note 2
as @laginatorrr said, can try unicode, in python might need make string
u"test\u0040gmail.com" try passing in these capabilities, worked me:
"unicodekeyboard": true "resetkeyboard": true
Comments
Post a Comment