Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27212

VS 2008 help filling out an HTML form

$
0
0
I'm trying to fill out the username and password form on the website: https://secure.myhfs.illinois.gov/lo...oamingEPF.html


the user name and password html is :

Code:

<td><input type="text" name="username" size="30">
                            <!-- Load the username of the last user into the input field -->
                            <script>
                                if (apiAccess.entrustTruePassClientAPI.entrustTruePassGetLastUserProfileType()=="ROAMING_EPF") {
                                    document.entrustform.username.value = apiAccess.entrustTruePassClientAPI.entrustTruePassGetLastUser();
                                }
                            </script>
                        </td>
                    </tr>
                    <tr>
                        <td><b>Password:</b></td>
                        <!-- AUTOCOMPLETE = "off" will turn off the password autocomplete option-->
                        <td><input type="password" name="password" AUTOCOMPLETE="off" value="" size="30"></td>


When I try to set the username and password after the website has finished loading through my IE object I get Object variable or With block variable not set. How can I set the username and password of these input fields?


Code:

IE.document.getelementbyid("password").value = idpa2_pw
IE.document.getelementbyid("username").value = idpa2_user

Yet when I try to set the value of either the "password" field or the "username" field

Viewing all articles
Browse latest Browse all 27212


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>