shahin
Active Member
When it comes to choose any item from a dropbox menu or input anything for search using dropbox then I get stuck. I've got something similar here. My intention is to put a certain text "F10" in the searchbar within dropbox to find it. I'm very close but can't accomplish it. My scraper can click on the dropbox menu and write the specific search in the search bar but can't settle it there, i meant can't unleash the search. I've uploaded a picture below to let you know what I meant. Moreover, if there is any better idea to deal with this, then I would be very grateful. Thanks in advance.
Code:
Sub Test()
Dim IE As New InternetExplorer, html As HTMLDocument
Dim post As Object, elem As Object
With IE
.Visible = True
.navigate "http://ebible.org/study/"
Do Until .readyState = READYSTATE_COMPLETE: Loop
Set html = .document
End With
Application.Wait Now + TimeValue("00:00:05")
Set post = html.getElementsByClassName("app-list text-list")(0)
post.Focus
post.Click
Application.Wait Now + TimeValue("00:00:05")
For Each elem In html.getElementsByClassName("text-chooser-filter-text i18n")
If InStr(elem.placeholder, "Filter...") > 0 Then
elem.Click
elem.innerText = "F10": Exit For
End If
Next elem
End Sub