Sending Keystrokes to Elements in Chrome and Edge Using the New Chrome/Edge Functions
It may not be immediately obvious that as well as setting the value of elements with ChromeSetElementValue and EdgeSetElementValue you can also send non-character keystrokes, such as Enter, or Page Down.
To do this, use the key codes for Edge and Chrome listed here.
ChromeSetElementValue>session_id,message_elements_1,First line //Press enter on the element ... ChromeSetElementValue>session_id,message_elements_1,\uE006 ChromeSetElementValue>session_id,message_elements_1,Second line
Note that when sending keystrokes only one can be sent at a time.Recently someone needed to scroll down inside a div, in order to force the page to fetch more data. Issuing a Page Down on the div element did the trick:
Of course you don’t have to use the new Chrome/Edge functions – you can still use UI methods and use SetFocus, SendText and/or Image Recognition to locate page elements.