Bullstrik1
Board Regular
- Joined
- Jul 31, 2014
- Messages
- 66
Hello Everyone!
I am banging my head against the wall for 2 days now with this issue, and so i come here humbly asking for your help or piece of advice that alow me to progress.
I have this website i would like to access and log in: Via Verde
And the code i am using is this:
My problem is that i cant log in in the website so i tried several ways, and in the end i don't know what i can i do anymore.
Hopefully, any of you could point me in the right direction by giving me some piece of advice here.
As i understood, the webpage is formed by some sort of login form. The thing is that i cant access the log in field or the password field.
I sincerely apretiate, in advance, any help you could give me.
Cheers all
I am banging my head against the wall for 2 days now with this issue, and so i come here humbly asking for your help or piece of advice that alow me to progress.
I have this website i would like to access and log in: Via Verde
And the code i am using is this:
Code:
Sub AbreSiteEcolocaPassword()
'to refer to the running copy of Internet Explorer
Dim IE As InternetExplorer
'to refer to the HTML document returned
Dim Doc As HTMLDocument, Fr As HTMLFrameElement, Form As HTMLFormElement, Ele As HTMLInputElement
'open Internet Explorer in memory, and go to website
Set IE = New InternetExplorer
With IE
.Visible = True
.navigate ("http://www.viaverde.pt/Website/")
While .Busy Or .readyState <> 4: DoEvents: Wend
' Código para fazer log in no site Via Verde através do InternetExplorer
Set Doc = .document.forms("WebForm1")
With Doc
For Each Ele In .getElementsByTagName("INPUT")
Next Ele
End With
' .getElementById("webform1").Focus
' .getElementById("wtEmailInput").Value = "LOGIN"
' .getElementById("wtPasswordInput").Focus
' .getElementById("wtPasswordInput").Value = "PASSWORD"
' .getElementById("wt14").Click
End With
End Sub
My problem is that i cant log in in the website so i tried several ways, and in the end i don't know what i can i do anymore.
Hopefully, any of you could point me in the right direction by giving me some piece of advice here.
As i understood, the webpage is formed by some sort of login form. The thing is that i cant access the log in field or the password field.
I sincerely apretiate, in advance, any help you could give me.
Cheers all