I'm using protractor for angular end-to-end. In order to send keys to an element, I use:
browser.actions().keyDown(protractor.Key.CONTROL).sendKeys('end').perform();
The problem is it doesn't work at all. I don't know what I'am doing wrong.
Try the below one
Option1:
var elm = element(by.model('locator'));
elm.sendKeys(protractor.Key.chord(protractor.Key.CONTROL, protractor.Key.END));
Option 2:
browser.actions().keyDown(protractor.Key.CONTROL).sendKeys(protractor.Key.END).perform();
Hope it helps you