Jump to content

IE.AU3 can not use to login www.baokim.vn, Help me!


Recommended Posts

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.

Link to comment
Share on other sites

  • Moderators

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!

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Moderators

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!

Link to comment
Share on other sites

  • Moderators

It is not java, and is not a certificate problem. The credentials you sent in PM are incorrect, plain and simple.

"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!

Link to comment
Share on other sites

  • Moderators

Then you need to check the Examples forum and use either the Firefox UDF (FF.au3) or the Chrome UDF.

"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!

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...