I am on this site.
https://brokercheck.finra.org/
I am trying to use VBA to place a number into the first box ("Name or CRD#") and press search. I cannot figure out how go the information in the box.
Here is the HTML code (sorry if there is not enough) which is why I provided the link.
> div layout-gt-xs="row" layout-xs="column" layout-align-xs="space-between center" class="layout-xs-column layout-gt-xs-row layout-align-xs-space-between-center"
>input type="text" ng-model="searchCtrl.name" placeholder="Name or CRD#" flex="auto" class="ng-pristine ng-valid flex-auto ng-empty ng-touched" aria-invalid="false" style=""
My code so far is this:
Sub BrokerCheckSlim()
Dim objIE As InternetExplorer 'special object variable representing the IE browser
Set objIE = New InternetExplorer 'Creates IE object
objIE.Visible = True 'Can you see the browser?
objIE.navigate "https://brokercheck.finra.org/" 'Open Website
Do While objIE.Busy = True Or objIE.readyState <> 4: DoEvents: Loop 'Keeps CPU from crashing
objIE.document.getElementsByClassName("ng-pristine ng-valid flex-auto ng-empty ng-touched").Item(0).Value = 1
objIE.document.getElementById("firm-input").Value = 1
objIE.document.getElementsByClassName("md-raised md-primary md-hue-2 md-button md-ink-ripple").Item(0).Click
Do While objIE.Busy = True Or objIE.readyState <> 4: DoEvents: Loop
End Sub
Any help would be appreciate.
Thanks