lpduy Posted March 4, 2014 Share Posted March 4, 2014 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 please help me. Link to comment Share on other sites More sharing options...
lpduy Posted March 4, 2014 Author Share Posted March 4, 2014 but i use chrom to test is working! Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted March 4, 2014 Moderators Share Posted March 4, 2014 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 More sharing options...
lpduy Posted March 5, 2014 Author Share Posted March 5, 2014 (edited) Thank MPVs!But it's fail to login with ie 9. i can login with chrome but just with IE 9 is failmy user : <########>pass : <########> pls help me Edited March 5, 2014 by Melba23 Details redacted Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted March 5, 2014 Moderators Share Posted March 5, 2014 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 More sharing options...
lpduy Posted March 5, 2014 Author Share Posted March 5, 2014 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! Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted March 5, 2014 Moderators Share Posted March 5, 2014 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 More sharing options...
lpduy Posted March 5, 2014 Author Share Posted March 5, 2014 I just send right user & pass! You can test with google chome or firefox success. But fail with IE Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted March 5, 2014 Moderators Share Posted March 5, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now