Protractor Not select first Element from an autocomplete search address Protractor Not select first Element from an autocomplete search address selenium selenium

Protractor Not select first Element from an autocomplete search address


you can send enter key

protractor.Key.ENTER

yourelement.sendKeys('your text to send ', protractor.Key.ENTER);


The Autocomplete List is only visible if a curser is over the element.

this.selectFirstElement = function(element){    browser.sleep(3500);    browser.driver.actions().mouseMove(element);    element.sendKeys(protractor.Key.ARROW_DOWN);    element.sendKeys(protractor.Key.TAB);};


Try adding a short delay (say 500ms) and then do click. Sometimes the rendering of autocomplete misses the first item.