Results 1 to 4 of 4

trying to select a dropdown in internetexplorer

Threaded View

  1. #1
    Registered User
    Join Date
    12-23-2014
    Location
    london
    MS-Off Ver
    2010
    Posts
    2

    trying to select a dropdown in internetexplorer

    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
    Last edited by kate2000; 09-23-2015 at 08:54 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. while loop to wait until user has closed InternetExplorer object
    By obnoxiouskiwi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2014, 02:04 AM
  2. Website Message Box by Automating InternetExplorer with VBA Excel
    By VBATOexcel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-17-2013, 02:33 AM
  3. IE.Navigate not working [IE is an object variable of type InternetExplorer]
    By arjun.majumdar in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-05-2013, 04:51 AM
  4. Getting html document of a webbrowser/SHDocVw.InternetExplorer control's tab
    By david90 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2013, 06:23 PM
  5. Win7 / IE9 / InternetExplorer.Application.Quit
    By Phil_V in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2011, 12:43 PM
  6. How to select a value in a range using a dropdown.
    By Cortlyn in forum Excel General
    Replies: 2
    Last Post: 07-03-2009, 07:58 AM
  7. [SOLVED] How can i Select a Report From Dropdown
    By joe41 in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2009, 12:11 PM
  8. InternetExplorer
    By Q.Rhodes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-23-2006, 04:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1