per ora uso
- Codice: Seleziona tutto
Public IE As Object
Sub PCFLoginPROVA()
myURL = "https://www.borsaitaliana.it/borsa/user/login.html"
'
If IE Is Nothing Then Set IE = CreateObject("InternetExplorer.Application")
'
With IE
.navigate myURL
.Visible = True
Do While .busy: DoEvents: Loop 'Attesa not busy
Do While .readyState <> 4: DoEvents: Loop 'Attesa documento
End With
'
myStart = Timer
Do
DoEvents
If Timer > myStart + 3 Or Timer < myStart Then Exit Do
Loop
Do Until Not IE.busy And IE.readyState = 4
DoEvents
Loop
' Input the userid and password
IE.document.getElementById("j_username").Value = "Sandro1234"
IE.document.getElementById("j_password").Value = "Sandro1234"
IE.document.getElementById("submit").Click
Do Until Not IE.busy And IE.readyState = 4
DoEvents
Loop
End Sub
Mi apre il sito ma non mi scrive niente sia nel form della username che in quello della password.
Esaminando l'elemento relativo alla username leggo:
- Codice: Seleziona tutto
<input name="j_username" class="m-form__input | t-input__reg | u-mt | required" type="text" placeholder="Inserisci Username*" value="">
ma quale è il valore dove devo indirizzare la ricerca?
Ci sto sbattendo la testa da qualche giorno ma non riesco a venirne a capo.
Grazie per l'aiuto che saprete darmi