How to send Emoji to a text box in android device using appium? – pCloudy – Question and Answers
Home >> Appium Tricks and Tricks >> How to send Emoji to a text ...

How to send Emoji to a text box in android device using appium?



For this we have to add two capabilities :
capabilities.setCapability("unicodeKeyboard", true);
capabilities.setCapability("resetKeybord", true);
/***code for sending emoji***/
String ballEmoji = "\u26BD"; 
driver.findElement(By.xpath("//android.widget.EditText[@resource-id='com.pcloudy.pcloudykeystroke:id/txtrat']")).sendKeys(ballEmoji);

Leave a Reply

Your email address will not be published. Required fields are marked *