Veit Posted April 30, 2020 Share Posted April 30, 2020 Hallo, I not find the way to click the button for the login, (IEAction) the rest work. Someone can help me? Thanks here is my script: #include <IE.au3> $user=InputBox("","Benutzername" ) $passwd=InputBox("Passwort", "Bitte Passwort eingeben", "","*") ; Create a browser window and navigate to $oIE = _IECreate ("http://airport.wobi.ipes/mail/" & $user & '.nsf') _IELoadWait($oIE, 500) $oForm = _IEFormGetCollection($oIE, 0) $oText = _IEFormElementGetObjByName ($oForm, "username") $1Text = _IEFormElementGetObjByName ($oForm, "password") _IEFormElementSetValue ($oText, $user) _IEFormElementSetValue ($1Text, $passwd) $0submit = _IEFormElementGetObjByName($oForm, "Submit") _IEAction($0submit, "Click") here is the code of the webpage <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html lang="de"> <head> <title>Serveranmeldung</title> <script language="JavaScript" type="text/javascript"> <!-- function doError(){return true;};window.onerror=doError; // --> </script> </head> <body text="#000000" onLoad="document.forms[0].username.focus(); document.forms[0].username.select();" bgcolor="#FFFFFFFF"> <form method="post" action="/names.nsf?Login"> <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFCC"> <tr><td width="100"> </td><td><h1>Serveranmeldung</h1><font color="#FF0000">Sie sind zur Durchführung dieser Operation nicht berechtigt.</font><br> <br> Geben Sie bitte Ihren Benutzernamen und Ihr Kennwort ein.<br> </td><td width="100"> </td></tr> <tr><td height="20" colspan="3"> </td></tr> <tr><td width="100" align="right"><label for="user-id"> Benutzername: </label></td><td> <input type="text" size="20" maxlength="256" name="username" id="user-id"></td><td> </td></tr> <tr><td width="100" align="right"><label for="pw-id">Kennwort: </label></td><td> <input type="password" size="20" maxlength="256" name="password" id="pw-id"> <input type="hidden" name="redirectto" value="/mail/stip.nsf"></td><td> </td></tr> <tr><td height="20" colspan="3"> </td></tr> <tr><td width="100"> </td><td> <input type="submit" value="Anmelden"></td><td> </td></tr> <tr><td height="20" colspan="3"> </td></tr> </table> </form> </body> </html> Link to comment Share on other sites More sharing options...
Danp2 Posted April 30, 2020 Share Posted April 30, 2020 Did you try using _IEFormSubmit? Veit 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Veit Posted April 30, 2020 Author Share Posted April 30, 2020 Now I try _IEFormSubmit and it works... Thanks a lot, for ur quick help!!! 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