I've tried this:
browser.actions().keyDown(protractor.Key.ENTER).keyUp(protractor.Key.Enter).perform();
which gives the error:
Error: Not a modifier key
Keyup/Keydown is limited to modifier keys in WebDriver (shift, ctrl, etc). I think you want
browser.actions().sendKeys(protractor.Key.ENTER).perform();
1.4m articles
1.4m replys
5 comments
57.0k users