+ Reply to Thread
Results 1 to 2 of 2

Web Scraping: How to force a drop-down box to appear?

Hybrid View

  1. #1
    Registered User
    Join Date
    09-24-2021
    Location
    Germany
    MS-Off Ver
    Office 365
    Posts
    4

    Web Scraping: How to force a drop-down box to appear?

    Hi!

    I am currently trying to scrape information from a website (bodenrichtwerte-boris.de) and am stuck. I am using IE.

    After you click on the map, you can enter an address into a field. While you are adding the address, a dropdown menu is generated from which you must choose (see first picture).


    My problem is that, if I enter a value into the field using VBA, the dropdown menu is not generated (see second picture)

    How can I trigger that dropdown menu to pop up?

    Here is the code I am using:

    Set HtmlDoc = LoadSite(IE, strUrl, bShowBrowser) 'Load site and tie variable to HTML object model
    Set HtmlElement = HtmlDoc.getElementById("karte")
    HtmlElement.Click
    Application.Wait (Now + TimeValue("0:00:02"))
    Set HtmlElement = HtmlDoc.getElementById("multisearchinput")
    HtmlElement.Value = "Lotsenweg 11, 24376 Kappeln"
    Attached Images Attached Images
    Last edited by AliGW; 09-24-2021 at 04:23 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,518

    Re: Web Scraping: How to force a drop-down box to appear?

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new here, I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Web Scraping
    By MAGomez0321 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-29-2020, 12:00 AM
  2. web scraping
    By midoan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-24-2018, 08:00 AM
  3. Web Scraping
    By CheekyMonkeh in forum Excel General
    Replies: 1
    Last Post: 10-15-2018, 02:43 PM
  4. help web scraping vba
    By kirby21 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-24-2015, 09:34 PM
  5. Stuck at work and stuck on a count function
    By gregfetzer in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-24-2012, 12:47 AM
  6. [SOLVED] Web scraping with xml
    By abousetta in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-24-2012, 05:25 AM
  7. Web scraping
    By mickbarry in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2006, 06:25 AM

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