In normal use you can select from the list either by mouse, or by typing a partial search for the item you want, and hitting enter.
Unfortunately, it has been extremely troublesome. I have tried different recording modes, and different options. They seem to work sometimes, but not all the time. What appears to be happening is the box loses focus before the selection is finalized. If I am inputting manually this never happens. I have discovered that if I simplify the input to the fewest steps possible, it works better. But it still happens.
Code: Select all
<div class="chosen-container chosen-container-multi" style="width: 95%;" title="" id="districtstatement_chosen">
<ul class="chosen-choices"><li class="search-field"><input type="text" value="Select" class="default" autocomplete="off" style="width: 64px;">
</li>
</ul><div class="chosen-drop">
<ul class="chosen-results">
<li class="active-result" data-option-array-index="0" style="">This is the first sample item.</li>
<li class="active-result" data-option-array-index="1" style="">Here is a different sample item</li>
</ul></div></div>
This version seems to work the best. The keypress marks the item which is currently the hilighted item based on the input, and checks that item in the box. However, it does not seem to do this with consistency - sometimes it works - sometimes it doesn't. If I do the same thing 'by hand' it works every time. If I watch the screen while the script runs, it appears the INPUT item disappears before it can be submitted.
Code: Select all
VERSION BUILD=1011 RECORDER=CR
TAG SELECTOR="#districtstatement_chosen>UL"
TAG SELECTOR="#districtstatement_chosen>UL>LI>INPUT" CONTENT=This<SP>is
EVENT TYPE=KEYDOWN SELECTOR="#districtstatement_chosen>UL>LI>INPUT" KEY=13
EVENT TYPE=KEYUP SELECTOR="#districtstatement_chosen>UL>LI>INPUT" KEY=13
For example, it records this code with "Conventional" and "Css Selectors" which does absolutely nothing.
Code: Select all
VERSION BUILD=1011 RECORDER=CR
TAG SELECTOR="HTML>BODY>DIV:nth-of-type(2)>SECTION>DIV>SECTION>DIV>FIELDSET>DIV:nth-of-type(3)>DIV>DIV>UL"
TAG SELECTOR="HTML>BODY>DIV:nth-of-type(2)>SECTION>DIV>SECTION>DIV>FIELDSET>DIV:nth-of-type(3)>DIV>DIV>UL>LI>INPUT" CONTENT=This<SP>is
Thanks.