sendKeysToPage
See Testing keyboard shortcuts. Sends given keys to a page after focusing the page using the given element. Useful for testing keyboard shortcuts in an application.
sendKeysToPage(elemId, keys, keys, ...)Parameters#
elemId: A static element on page that can be clicked to focus on page. Note thatbodyelement shouldn't be given as certain browser drivers (webdriver) can't use it for clicking being it's size is 0.keys:stringkeys that needs to be sent to the page.
Returns#
- No value