Hi,
I have a problem with my application using selenide+cucumber, when I try to send the value at text fields of autocomplete not taking full value, for example: I send value ABASTOS and only recognize the text ABOS or in the case of number I send 201689876 and only recognize 276. The text field only can be selected when I press enter, I tried in the following ways:
_________________________________________________
@Dado("^digito en el nuevo campo Demandantes \"([^\"]*)\"$")
public void digito_en_el_nuevo_campo_Demandantes(String arg1) throws Throwable {
home.getCampoAdicionalDemandantes().setValue(arg1);
home.getCampoAdicionalDemandantes().pressEnter();
}
_________________________________________________
@Dado("^digito en el nuevo campo Demandados \"([^\"]*)\"$")
public void digito_en_el_nuevo_campo_Demandados(String arg1) throws Throwable {
home.getCampoAdicionalDemandados().sendKeys(arg1,Keys.ENTER);
}
_________________________________________________
@Dado("^digito en el nuevo campo Demandados \"([^\"]*)\"$")
public void digito_en_el_nuevo_campo_Demandados(String textoDemandantes) throws Throwable {
home.setCampoDemandantes(textoDemandantes).waitUntil(exist, 10000);
home.getCampoDemandantes().setValue(textoDemandantes).sendKeys(Keys.ARROW_DOWN, Keys.ENTER);
}
_________________________________________________
@Cuando("^digito en el campo Demandados \"([^\"]*)\" seleccionando \"([^\"]*)\"$")
public void digito_en_el_campo_Demandados(String textoDemandados, String seleccion) throws Throwable {
home.getCampoDemandados().clear();
home.getCampoDemandados().selectOptionByValue(seleccion);
}
_________________________________________________
But, none of them works.
I appreciate your help.
This is the image:

Cordially,
ELKIN GUTIERREZ