// if selectFirst attribute of autocomplete is set, we don't have to
// press arrow down key for first item
boolean skip = suggestions.get(0).getAttribute("class").contains("rf-au-itm-sel");
int index = Utils.getIndexOfElement(foundValue);
int steps = index + (skip ? 0 : 1);
Actions actions = new Actions(driver);
for (int i = 0; i < steps; i++) {
actions.sendKeys(Keys.ARROW_DOWN);
}
actions.sendKeys(foundValue, Keys.RETURN).perform();
}