I have 3 emails
String[] emails = {"x@gmail.com", "y@gmail.com", "z@gmail.com"}
I want the code to select x@gmail.com
first, y@gmail.com
second, and z@gmail.com
third, and plug it into this command :
driver.findElement(By.xpath("//android.widget.EditText[@index='2']")).sendKeys(emails);
But how do I make it so it selects x@gmail.com
first, y@gmail.com
second, and z@gmail.com
last?