We are using a Javascript UI library that models a combobox as an unordered list in the HTML, e.g.
<ul>
<li>Item 1</li>
<li>Item 2</li>
...
</ul>
This is rendered like a combobox where the user clicks on it and picks from a droplist of the items. This control is not an input field, but if it has focus it does accept keystrokes and scrolls the droplist to the first item in the list that starts with the letter that is typed. This is important functionality to test.
But Truclient does not give me the option to send keystrokes to an object of this type - if I use the "Generic Object Action" the actions allowed include "Press Key" but that only allows predefined keys like ENTER, TAB, BACKSPACE, etc. It does not allow a normal letter key (e.g. "s"). The action "Type" does not appear in the list when a <ul>
is the target object type.
So how can I send a simple one-letter keystroke to this control? It seems wrong that Truclient assumes what user interactions are possible based on the DOM element type - modern web applications use all kinds of DOM structures to render complex UIs (and allows various user interactions with them).
Is it possible to send a simple one-letter keystroke to a element in Truclient?