Jump to content
Sign in to follow this  
lpduy

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

Recommended Posts

lpduy

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.

Share this post


Link to post
Share on other sites
lpduy

but i use chrom to test is working!

Share this post


Link to post
Share on other sites
JLogan3o13

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.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
lpduy

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

Share this post


Link to post
Share on other sites
JLogan3o13

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).


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
lpduy

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!

Share this post


Link to post
Share on other sites
JLogan3o13

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


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
lpduy

I just send right user & pass! You can test with google chome or firefox success. But

fail with IE

Share this post


Link to post
Share on other sites
JLogan3o13

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


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
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
Sign in to follow this  

×