Jump to content

Recommended Posts

Posted

i writting some code AutoiT 

#include <IE.au3>
$oie = _IECreate()
_IENavigate($oie, "http://baokim.vn")
_IELoadWait($oie)
do
    Sleep(300)
Until _IEGetObjById($oie, "email") <> 0
$z = _IEGetObjById($oie, "email")
$z.value = "lpduy2004@yahoo.com"
$z = _IEGetObjById($oie, "password")
$z.value = "**************"
$z = _IEGetObjById($oie,"btnSignIn").click
_IELoadWait($oie)

have problems : Thông tin đăng nhập không chính xác!

 

@@ i dont understands :D please help me.

  • Moderators
Posted

This works just fine for me. Obviously I do not know your password, but the variable values all hold true when I do a ConsoleWrite.

#include <IE.au3>
$oIE = _IECreate("http://baokim.vn")
$email = _IEGetObjById($oIE, "email")
$email.value = "lpduy2004@Yahoo.com"
$pw = _IEGetObjById($oIE, "password")
$pw.value = "***********"
$button = _IEGetObjByName($oIE, "yt0")
    _IEAction($button, "Click")

One thing I would point out is it is never a good idea to overwrite the same variable again and again. You should have one var for each piece of data you need to store, and the names should have some meaning. Also, there is no object on that page with the ID of "btnSignIn", which is why I changed it to _IEGetObjByName.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Posted (edited)

Thank MPVs!

But it's fail to login with ie 9. i can login with chrome but just with IE 9 is fail

my user : <########>

pass : <########>

 

pls help me

Edited by Melba23
Details redacted
  • Moderators
Posted

Even manually, that password does not work. I everything up to the point of submitting the username and password and clicking the button works. If you would like to PM credentials that work I will try to help you troubleshoot further (never a good idea to put username and password in an open forum).

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Posted

I think ie block some java script or problem on certificate of baokim.vn. But i dont understand clearly. Pls give me some solutions. Thanks in advance!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...