private void selectWithKeys(WebElement foundValue) {
// if selectFirst attribute is set, we don't have to press arrow down key for first item
boolean skip = advanced().getSuggestionsElements().get(0).getAttribute("class").contains("rf-sel-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();
}