Results 1 to 2 of 2

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

Threaded 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.

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