0
So people want to put a value on a web page, but before that I log into it and I’m directed to another page, there I navigate to a different page, and I took a look at the page code and the place where I want to put the information has the name part, at first it would be like logging in the page, but for some reason I am not able to put the value in this page.
Private Sub UserForm_Activate()
Dim senha, usuario
sURL = "http://tx3.travian.com.br/" ' Navego até o site
Set oBrowser = New InternetExplorer
oBrowser.Silent = True
oBrowser.navigate sURL
oBrowser.Visible = True
Do
' Espera a página carregar
Loop Until oBrowser.readyState = READYSTATE_COMPLETE
Set HtmlDoc = oBrowser.document
HtmlDoc.all.Name.Value = "" ' aqui coloco meu login
HtmlDoc.all.Password.Value = "" ' aqui coloco minha senha
HtmlDoc.all.lowRes.Click ' clico em um botao
HtmlDoc.all.s1.Click 'click no botao de login
Do While oBrowser.Busy
DoEvents
Loop
oBrowser.navigate (sURL & ("build.php?tt=2&id=39")) ' navego até a pagina que quero ir
Do While oBrowser.Busy
DoEvents
Loop
HtmlDoc.all.s4.Value = "4" 'É aqui o problema, quero colocar uma informacao aqui, é igual ao local onde boto minha senha e conta, mas por algum motivo dá erro.
End Sub
What could you do here
Do you say the last line gives error? What mistake would be?
– RSinohara