The environment I'm using is
- Protractor 5.3.1
- Cucumber 4.2.1
- IE11
- selenium-webdriver 3.6.0
On the page in the application I am testing there is no button to click on, you need to enter text into an input field then send the ENTER key. The following works fine in chrome and firefox.
browser.driver.findElement(By.className('myClass')).then((text) => {
text.sendKeys('abc'); // this works fine in IE11
text.sendKeys(Key.ENTER);
});
The issue is that it won't send the ENTER key in IE11, it just skips over this step and fails on the next step in the test.
I also tried this:
browser.actions().sendKeys(protractor.Key.RETURN).perform();
When I tried this the following error is returned:
[15:29:10] E/launcher - UnsupportedOperationError: sendKeysToActiveElement
Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:13:22.693Z'
System info: host: 'ABC', ip: '9.162.xxx.xxx', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_181'