I'm trying to write an exclamation mark in an input but Protractor fails at this operation.
What I'm trying to do :
element(by.id('nom')).sendKeys('abc!');
But I can only see abc
in my field.
I've added a listener on keyup events, the browser is receiving from Protractor :
... keys for 'abc'...
KeyCode : 192 - Code : BackQuote - Key : ~
KeyCode : 16 - Code : ShiftLeft - Key : Shift
I kept the window opened (via browser.pause()
) and I entered an exclamation mark manually, thus I got :
KeyCode : 192 - Code : BracketRight - Key : !
KeyCode : 16 - Code : ShiftLeft - Key : Shift
I'm using Google Chrome and I have a QWERTZ keyboard.
Does anyone have an idea of why is this happening ?