DjDeep00 Posted December 27, 2005 Posted December 27, 2005 (edited) Team, I am unable to find the form name so I can automatically login. Here is the source code for the webpage... Can someone please tell me if its possible? Any help would be great...Thanx in advance <html> <!-- /* * @(#)login.jsp 5/1/2001 11:55:44 AM * * */ --> <head> <title>LNP Manager Login Screen</title> <meta http-equiv="expires" content="0"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv=Content-Type content="text/html; charset=windows-1252"/> <style type="text/css"> .window-frame {margin: 0; padding: 1px; border: 1px solid #999999;COLOR: #000000; font-family: 'Verdana', 'Arial', 'Helvetica';background: #007fc0;} .window-title {margin: 0px; padding: 1px; border: 1px solid #007fff;COLOR: #ffffff; font-family: 'Verdana', 'Arial', 'Helvetica';background: #007fc0; text-align: left;} .logon-error {background: #eeeeee;font-weight: bold;font-size: 8pt;color: #ff0000;font-family: 'Verdana', 'Arial', 'Helvetica';text-align: center;text-decoration: none;line-height: 10px;} .logon-prompt {background: #eeeeee;font-weight: normal;font-size: 10pt;color: #000000;font-family: 'Verdana', 'Arial', 'Helvetica';text-align: right;} .logon-logo {padding: 0px; text-align: left;font-family: 'Arial', 'Helvetica';font-weight: normal;font-size: 10pt;color: #000000;text-decoration: none;line-height: 22px;background-color: #ffffff;} .logon-title {padding: 0px; text-align: right;font-family: 'Arial', 'Helvetica';font-weight: bold;font-size: 16pt;font-style: Italic;color: #000000;text-decoration: none;line-height: 22px;background-color: #ffffff;} .logon-title-section { margin: 0px; padding: 0px; border: 0px solid #999999;COLOR: #000000; font-family: 'Verdana', 'Arial', 'Helvetica';background: #ffffff;} .logon-form-section { margin: 0px; padding: 0px; border: 0px solid #999999;COLOR: #000000; font-family: 'Verdana', 'Arial', 'Helvetica';background: #eeeeee;} .logon-copyright { padding: 0px; text-align: right;font-family: 'Arial', 'Helvetica';font-weight: bold;font-size: 6pt;font-style: Italic;color: #000000;text-decoration: none;line-height: 10px;background-color: #ffffff;} .logon-input {background: #eeeeee;font-weight: normal;font-size: 10pt;color: #000000;font-family: 'Verdana', 'Arial', 'Helvetica';text-align: left;} .logon-submit {background: #eeeeee;font-weight: normal;font-size: 10pt;color: #000000;font-family: 'Verdana', 'Arial', 'Helvetica';text-align: center;} </style> </head> <body> <form action="j_security_check" method="post"> <!-- <form action="?action=login" method="post"> --> <table class="window-frame" cellspacing="1" width="400" align="center"> <tr> </tr> <tr> <td> <table class="logon-title-section" width="100%"> <tr class="logon-logo" width="100%"> <td width="20%"> </td> <td class="logon-title" valign="bottom" width="80%"> LNP Manager <br> <br> <div class="logon-copyright" > </div> </td> </tr> </table> </td> </tr> <tr> <td colspan="2" > <table class="logon-form-section" width="100%"> <tr height="35"> <td class="logon-error" colspan="2"> </td> </tr> <tr> <td class="logon-prompt" width="40%">User name:</td> <td class="logon-input" width="60%"> <input type="text" name="j_username" size="20"> </td> </tr> <tr> <td class="logon-prompt" width="40%">Password:</td> <td class="logon-input" width="60%"> <input type="password" name="j_password" size="20"> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td class="logon-submit" colspan="2"> <input type="submit" name="login" value="Login" /> </td> </tr> <tr> <td> </td> <td> </td> </tr> </table> </td> </tr> </table> </form> </body> </html> Edited October 30, 2007 by DjDeep00
DaleHohm Posted December 27, 2005 Posted December 27, 2005 I am unable to find the form name so I can automatically login. Here is the source code for the webpage... Can someone please tell me if its possible?Form names (or any object names and ID's for that matter) are not required in HTML. The DOM still provides a way to reference objects by zero-based index however.If you are using IE.au3, check out _IEFormGetObjByIndex($oIE, 0)Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble
DjDeep00 Posted December 27, 2005 Author Posted December 27, 2005 It worked...Thanks for your help...
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