HTML Dropdown List - No 'Options' or 'Selected' or 'SelectedIndex'

jpstory

Board Regular
Joined
Dec 17, 2010
Messages
118
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>
 
Last edited:

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,215,640
Messages
6,125,976
Members
449,276
Latest member
surendra75

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top