@Sagar_Khanvilkar : You can create custom method for this.
Start appium as : appium --relaxed-security
This will allow you to execute adb shell input text âANY STRINGâ command from your script.
Find the element locator for Recipient text box.
Example :MobileElement element=driver.findElement(By.id(âcom.google.android.apps.messaging:id/recipient_text_viewâ));
Below is the Custom Method which tap on recipient(To text box) and enter multiple String(Contact Numbers) one after another
public void enterTextMethod(MobileElement element,String inputText){
element.click();
List enterText = Arrays.asList(âtextâ, inputText);
Map<String, Object> cmd = ImmutableMap
.of(âcommandâ, âinputâ, âargsâ, enterText);
driver.executeScript(âmobile: shellâ, cmd);
((AndroidDriver) driver).pressKey(new KeyEvent(AndroidKey.ENTER));
}