Xenopus
asked on
Automating router logon
I am trying to automate the logon to my satellite broadband.
This is a two stage operation.
First I need to logon to my ISDN/Satellite router then logon to the OpenSky network.
I have managed to do the second part - BTW this was the subject of an earlier unresolved query and I'll publish my resoloution ASAP.
Here is the start of the HTML for the logon page...
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- -------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15">
<META HTTP-EQUIV="refresh" content="30;URL=/cgi-bin/s tatus.cgi" >
<meta name="MSSmartTagsPreventPa rsing" content="TRUE">
<link rel="stylesheet" href="/style.css" title="F10" TYPE="text/css">
<title>Start Page</title>
</head>
<body>
<table style="border-width: 0px; background-color: rgb(239,190,59); width: 100%">
<tr>
<td style="width: 243px"><img src="/images/yeltop_01.jpg " alt=""></td>
<td style="with: auto"> </td>
<td style="width: 348px"><img src="/images/yeltop_03new. jpg" alt=""></td>
</tr>
</table>
<h1 style="position: absolute; top: 24px; left: 256px; background-color: transparent; color: black">
Start Page
</h1>
<div class="status">
<form name="action_form" action="/cgi-bin/action.cg i" method="post">
<p style="color: green">The connection is up.</p><input type="submit" class="connx" name="connx" value="Disconnect">
</form>
</div>
<h2>Satellite signal quality</h2>
<p>
<img style="border: solid ; border-width: 4px" src="/images/signal_3.jpg" alt="|******************** ****|">
</p>
<h2>Transfer statistics</h2>
<div class="statistics">
<table class="info" style="text-align: left">
<tbody>
<tr><th class="info">Device</th><t h class="info">Received</th> <th class="info">Sent</th></tr >
<tr><td class="info"><b>Ethernet</ b></td><td class="info">15523469</td> <td class="info">185918061</td ></tr>
<tr><td class="info"><b>Satellite< /b></td><t d class="info">170128916</td ><td class="info">570170</td></ tr>
<tr><td class="info"><b>Modem</b>< /td><td class="info">11084972</td> <td class="info">8546308</td>< /tr>
</tbody>
</table>
</div>
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- -------
All that I need to do is the equivalent of clicking on the Disconnect/Connect button "CONNX" above.
I assumed as it was a submit input type that I need to do something like...
IE.Document.All.Item("conn x").submit
Needless to say I've tried this with no luck any suggestions gratefully received.
This is a two stage operation.
First I need to logon to my ISDN/Satellite router then logon to the OpenSky network.
I have managed to do the second part - BTW this was the subject of an earlier unresolved query and I'll publish my resoloution ASAP.
Here is the start of the HTML for the logon page...
--------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15">
<META HTTP-EQUIV="refresh" content="30;URL=/cgi-bin/s
<meta name="MSSmartTagsPreventPa
<link rel="stylesheet" href="/style.css" title="F10" TYPE="text/css">
<title>Start Page</title>
</head>
<body>
<table style="border-width: 0px; background-color: rgb(239,190,59); width: 100%">
<tr>
<td style="width: 243px"><img src="/images/yeltop_01.jpg
<td style="with: auto"> </td>
<td style="width: 348px"><img src="/images/yeltop_03new.
</tr>
</table>
<h1 style="position: absolute; top: 24px; left: 256px; background-color: transparent; color: black">
Start Page
</h1>
<div class="status">
<form name="action_form" action="/cgi-bin/action.cg
<p style="color: green">The connection is up.</p><input type="submit" class="connx" name="connx" value="Disconnect">
</form>
</div>
<h2>Satellite signal quality</h2>
<p>
<img style="border: solid ; border-width: 4px" src="/images/signal_3.jpg"
</p>
<h2>Transfer statistics</h2>
<div class="statistics">
<table class="info" style="text-align: left">
<tbody>
<tr><th class="info">Device</th><t
<tr><td class="info"><b>Ethernet</
<tr><td class="info"><b>Satellite<
<tr><td class="info"><b>Modem</b><
</tbody>
</table>
</div>
--------------------------
All that I need to do is the equivalent of clicking on the Disconnect/Connect button "CONNX" above.
I assumed as it was a submit input type that I need to do something like...
IE.Document.All.Item("conn
Needless to say I've tried this with no luck any suggestions gratefully received.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER