in reply to Re: Grab text from web page using Win32::OLE
in thread Grab text from web page using Win32::OLE
However, some initial tests have failed.$ie->form_name( $name ) $ie->field($name,$value)
but it seems that the code snippet<form id="ldb" name="ldb" method="get" action="/times_fares/ldb/;jsess +ionid=10BE7B01E6848F6282BF503A24CD606F" onsubmit="kbSubmit(this)"> <div id="contentbg"> <h1><em>Live</em> Departures & Arrivals</h1> <div class="jpbody"> <p>Please enter the entire, partial name or 3-letter c +ode for your station.</p> <fieldset> <div class="station"> <label for="mainStation">Station:</label> <input id="mainStation" name="mainStation" typ +e="text" value="" size="30"/> <div id="mainStationAc" class="sacDiv"></div>
returns an undefined value for $gotform. And, of course, the same applies when I try to set a field, e.g. mainStation to a value.my $url = "http://www.nationalrail.co.uk/ldb/"; $ie = Win32::IE::Mechanize->new( visible => 1 ); $ie->get( $url ); my $formname = "ldb"; my $gotform = $ie->form_name( $formname );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Grab text from web page using Win32::OLE
by athanasia (Pilgrim) on Oct 13, 2008 at 13:19 UTC | |
by ikegami (Patriarch) on Oct 13, 2008 at 14:14 UTC | |
by athanasia (Pilgrim) on Oct 13, 2008 at 14:42 UTC | |
by ikegami (Patriarch) on Oct 13, 2008 at 14:48 UTC | |
by athanasia (Pilgrim) on Oct 13, 2008 at 14:58 UTC |