I use ProtractorJS (and Appium) to check the website in browsers and devices. One test is to type in the search field and press ENTER. Here is a snippet from the page object.
page.searchInput.sendKeys("Text");
page.searchInput.sendKeys(protractor.Key.ENTER);
The above two lines work perfectly on any browser and Android devices. However, the same test fails in iOS because the ENTER key is not sent. On the iOS keyboard, the key I have to press is “Search.”
The test should initiate a search using the keyboard.
Any ideas on how to send the ENTER key on iOS?
source
share