Jump to content

IE again


DW1
 Share

Recommended Posts

How would I auto log into this?

how would I recognize the difference between the text input and password input? they have the same name.

<input TYPE="hidden" NAME="p_name" VALUE="S2"/>
               <table width="100%" cellpadding="3" cellspacing="0" border="0">
                  <tr>
                     <td>User Name:<br>
                     <input type="text" name="p_val" class="text">
                     </td>
                </tr>
                  <tr>
                     <td>Password:<br>
                     <input TYPE="password" NAME="p_val" class="text">
                   </td>
                </tr>
                <tr>
                     <td>
                      <input type="submit" name="PC1" class="submit" value="Submit"></td>
                     </td>
                </tr>
               </table>
               <br />
Link to comment
Share on other sites

is there a way to search by type?

I have been looking at the help file...

I tried:

If _IEPropertyGet($oIE, "locationname") = "LicAdminTool Login Page" Then
        $inputname = 0
        While Not IsObj($inputname)
            $inputname = _IEGetObjByName($oIE, "p_val")
            Sleep(100)
        WEnd
        _IEFormElementSetValue($inputname, $name, $info)

and I tried it with:

_IEGetObjById

PLEASE help me

Link to comment
Share on other sites

Look at _IEFormElementGetCollection with an index or _IEGetObjByName with an index.

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

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