Hi there,

My broadband provider used to have an XML data usage stream where I used to check my usage. They have now disabled this so I am planning to build my own VB application to login to the usage webpage and scrape the usage data.

I am stuck on the first part though... logging in!

This is the webpage that I am planning to log into:
https://memberservices.optuszoo.com.au/myusage/

This is the code I am using:
Code:
        WebBrowser1.Navigate("https://memberservices.optuszoo.com.au/myusage/")
        WebBrowser1.Document.GetElementById("username").SetAttribute("value", "blah")
        WebBrowser1.Document.GetElementById("password").SetAttribute("value", "blah")
	WebBrowser1.Document.GetElementById("button").InvokeMember("click")
Problem is that HTML source doesn't seem to contain the element name for the sign in button.

This is the relevant HTML source:

Code:
<!-- START login box -->
<div><form name="login"  class="cleardiv" method="post">
<input type="hidden" name="Action" value="login">
<!-- START error message -->


<!-- END error message -->

<div id="login" >

<div class="label">

  <label accesskey="u" for="username">Username:</label>

<input type="text" id="username" name="username" maxlength="32" value="" /></div>

     <div class="label"><label accesskey="p" for="password">Password:</label>

     <input type="password" id="password" name="password" maxlength="32" /></div>

<div class="butt"><button type="submit" class="btn"><div><div><div>Sign In</div></div></div></button></div>

</div>

</form></div>
Any help working this out would be appreciated. Thanks in advance.