Hi All
I am trying to automate running a query on a website by inputing/select multiple parameters.
One of the parameters is to select an option from a dropdown list.
However, when browsing through the dropdown object's properties (HTMLInputElement) in VBA editor's Local window, I can't find Options, Selected or SelectedIndex to modify the selection.
I can input the desired value by setting the input value, but it is not aceepted/recognized upon querying.
Here dropdown object has the following events and I have try all of them in the following order, here are the results:
onblur - works
onfocus - works
onkeydown - did not work
onkeyup - did not work
o n c l i c k - pull up the list
Do I have to fire these events in certain order in order to get it to work? Am I missing anything here?
here is the code for the dropdown:
<div class="v-gridlayout-slot" style="left: 0px; top: 147px; padding-top: 17px;">
<div class="v-caption" id="gwt-uid-240" style="left: 0px; top: 0px; position: absolute;" for="gwt-uid-241">
<div class="v-captiontext">Product Typediv>
</div>
<div class="v-filterselect v-widget v-has-width" role="combobox" style="width: 400px;">
<input tabindex="0" class="v-filterselect-input" id="gwt-uid-241" style="width: 100%;" type="text" loop="1">input>
<div class="v-filterselect-button" role="button" aria-hidden="true"></div>
</div>
</div>
I am trying to automate running a query on a website by inputing/select multiple parameters.
One of the parameters is to select an option from a dropdown list.
However, when browsing through the dropdown object's properties (HTMLInputElement) in VBA editor's Local window, I can't find Options, Selected or SelectedIndex to modify the selection.
I can input the desired value by setting the input value, but it is not aceepted/recognized upon querying.
Here dropdown object has the following events and I have try all of them in the following order, here are the results:
onblur - works
onfocus - works
onkeydown - did not work
onkeyup - did not work
o n c l i c k - pull up the list
Do I have to fire these events in certain order in order to get it to work? Am I missing anything here?
here is the code for the dropdown:
<div class="v-gridlayout-slot" style="left: 0px; top: 147px; padding-top: 17px;">
<div class="v-caption" id="gwt-uid-240" style="left: 0px; top: 0px; position: absolute;" for="gwt-uid-241">
<div class="v-captiontext">Product Typediv>
</div>
<div class="v-filterselect v-widget v-has-width" role="combobox" style="width: 400px;">
<input tabindex="0" class="v-filterselect-input" id="gwt-uid-241" style="width: 100%;" type="text" loop="1">input>
<div class="v-filterselect-button" role="button" aria-hidden="true"></div>
</div>
</div>
Last edited: