I use the sendKeys method to send a string to a search box. The problem is that
only the first couple (it differs) of keys are being sent. With the result that the search box is not able to filter content correctly. Below is a snippet of my code:
String currLab = labsInCloud.get(j); //get a lab name from a list
evtFilter_fld.clear(); //clear the filter box
evtFilter_fld.sendKeys(currLab); //send keys to filter box
WebElement selectLab = getDriver().findElement(mainPage_selectLab_i(1)); //select first item from
//filter
so for example if currLab = "test lab" only the "te" of currLab is sent to the filter box.
EDIT: Just to add that selectLab is selecting the incorrect item due to the full text not being sent.
maxlengthlike this<input type="text" id="x" maxlength="2">?