Hello,
I am trying to select a dropdown from the webpage. Here is the source-code
<div role="presentation" id="x-auto-272" class="x-combo-list x-ignore x-component x-border " style="border-width: 1px; z-index: 1003; visibility: visible; height: 95px; width:
498px; left: 330px; top: 288px;"><div tabindex="0" hidefocus="True" id="x-auto-224" class=" x-view x-combo-list-inner x-component x-unselectable" unselectable="on"
style="overflow-x: hidden; padding: 0px; border-width: 0px; height: 95px; width: 498px;"><div role="listitem" class="x-combo-list-item x-view-highlightrow x-combo-
selected">Electrolux</div><div role="listitem" class="x-combo-list-item ">Walmart</div><div role="listitem" class="x-combo-list-item">Petsmart</div><div role="listitem"
class="x-combo-list-item">Toyota</div><div role="listitem" class="x-combo-list-item">Nokia</div></div></div>
I have tried all these ---
ie.Document.all.Item("x-auto-224").selectedindex = 2, Doc.getElementById("x-auto-224").selectedindex = 2.
IE.Document.getElementById("x-auto-272").Focus
IE.Document.getElementById("x-auto-272").selectedIndex = 2
IE.Document.getElementById("x-auto-272").FireEvent ("onchange")
Set methodFld = ieDoc.getElementById("x-auto-224")
methodFld.Value = "WALMART"
But nothing worked. I am trying to select Walmart out of the list.
Thanks in advance,
Kate
Bookmarks