any suggestion on the below mentioned problem ????? ( accessing hidden buttons in a website)<br><br><br>any help would be highly appreciated.<br><br>thanks<br>Prasanth<br><br><div><span class="gmail_quote">On 8/16/07, <b class="gmail_sendername">
Terry Peppers</b> <<a href="mailto:peppers@gmail.com">peppers@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Prasanth -<br><br>From the Python shell - I just did this:<br><br>---- START SNIP ----<br>[terryp@Macintosh] terryp :: python<br>Python 2.4.4 (#1, Oct 18 2006, 10:34:39)<br>[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
<br>Type "help", "copyright", "credits" or "license" for more information.<br>>>> from twill.commands import *<br>>>> go("<a href="http://sunsolve.sun.com">http://sunsolve.sun.com
</a>")<br>Following HTTP-EQUIV=REFRESH to /show.do?target=home<br>==> at <a href="http://sunsolve.sun.com/show.do?target=tous">http://sunsolve.sun.com/show.do?target=tous</a><br>'<a href="http://sunsolve.sun.com/show.do?target=tous">
http://sunsolve.sun.com/show.do?target=tous</a>'<br>>>> showforms()<br><br>Form name=search (#1)<br>## ## __Name__________________ __Type___ __ID________ __Value__________________<br>1 charset hidden (None) UTF-8
<br>2 terms text searchfield Search<br>3 menu select searchpull<br>['/search/advsearch.do?collection=al ...<br>4 1 None image searchbttn  »Â
<br>5 origin hidden (None) quick<br>6 wholewords hidden (None) checked<br><br><br>Form name=tou (#2)<br>## ## __Name__________________ __Type___ __ID________ __Value__________________
<br>1 accept hidden (None) N<br>2 touText textarea (None)<br>SUNSOLVE LICENSE AGREEMENT<br><br>PLEA ...<br>3 Print button (None) None<br>
4 None button (None) None<br>5 None button (None) None<br><br><br>Form name=survey (#3)<br>## ## __Name__________________ __Type___ __ID________ __Value__________________
<br>1 Recommend select (None) ['-1'] of ['-1',<br>'10', '9', '8', '7' ...<br>2 URL hidden (None)<br>3 1 None submit (None) Â SubmitÂ
<br><br><generator object at 0x7c51c0><br>>>><br>---- END SNIP ----<br><br>Now looking @ the source of the page the element you want is this, I think:<br><br><form name="tou" method="POST" action="/FRONTDOOR">
<br><input type="hidden" name="accept" value="N"><br><br>I figured you'd be able to say something like: fv(2, "accept", "Y")<br>and yet when you do that I get this from Twill:
<br><br>>>> fv(2, "accept", "Y")<br>form field is read-only or ignorable; nothing done.<br>>>> fv(2, "accept", 1)<br>form field is read-only or ignorable; nothing done.<br>>>>
<br><br>Titus? Anyone else?<br><br>Never had to tinker with hidden form fields.<br><br>t.<br><br><br><br>On 8/15/07, <a href="mailto:twill-request@lists.idyll.org">twill-request@lists.idyll.org</a> <<a href="mailto:twill-request@lists.idyll.org">
twill-request@lists.idyll.org</a>> wrote:<br>> Send twill mailing list submissions to<br>> <a href="mailto:twill@lists.idyll.org">twill@lists.idyll.org</a><br>><br>> To subscribe or unsubscribe via the World Wide Web, visit
<br>> <a href="http://lists.idyll.org/listinfo/twill">http://lists.idyll.org/listinfo/twill</a><br>> or, via email, send a message with subject or body 'help' to<br>> <a href="mailto:twill-request@lists.idyll.org">
twill-request@lists.idyll.org</a><br>><br>> You can reach the person managing the list at<br>> <a href="mailto:twill-owner@lists.idyll.org">twill-owner@lists.idyll.org</a><br>><br>> When replying, please edit your Subject line so it is more specific
<br>> than "Re: Contents of twill digest..."<br>><br>><br>> Today's Topics:<br>><br>> 1. calling javascript function in twill (prasanth allada)<br>><br>><br>> ----------------------------------------------------------------------
<br>><br>> Message: 1<br>> Date: Wed, 15 Aug 2007 00:40:35 +0530<br>> From: "prasanth allada" <<a href="mailto:prasanth.allada@gmail.com">prasanth.allada@gmail.com</a>><br>> Subject: [twill] calling javascript function in twill
<br>> To: <a href="mailto:twill@lists.idyll.org">twill@lists.idyll.org</a><br>> Message-ID:<br>> <<a href="mailto:a07dd2c70708141210u470fb652s2c25757399801dc9@mail.gmail.com">a07dd2c70708141210u470fb652s2c25757399801dc9@mail.gmail.com
</a>><br>> Content-Type: text/plain; charset="iso-8859-1"<br>><br>> hi<br>><br>> i want to access a site which contains a javascript using twill via python<br>> whenever i try to access the following site
<a href="http://sunsolve.sun.com">http://sunsolve.sun.com</a><br>> i am redirected to a different page which contains a license agreement.<br>> this page contains a javascript which has a hidden button whose value is
<br>> changed using the javascript. i hav to click on tat hidden button to proceed<br>> to my required url.<br>> unless i click on that button i cannot access the required information.<br>> does anyone have ne suggestions for this problem
<br>><br>> thanks and regards<br>> prasanth<br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL: <a href="http://lists.idyll.org/pipermail/twill/attachments/20070815/dec51190/attachment.html">
http://lists.idyll.org/pipermail/twill/attachments/20070815/dec51190/attachment.html</a><br>><br>> ------------------------------<br>><br>> _______________________________________________<br>> twill mailing list
<br>> <a href="mailto:twill@lists.idyll.org">twill@lists.idyll.org</a><br>> <a href="http://lists.idyll.org/listinfo/twill">http://lists.idyll.org/listinfo/twill</a><br>><br>><br>> End of twill Digest, Vol 25, Issue 3
<br>> ************************************<br>><br><br>_______________________________________________<br>twill mailing list<br><a href="mailto:twill@lists.idyll.org">twill@lists.idyll.org</a><br><a href="http://lists.idyll.org/listinfo/twill">
http://lists.idyll.org/listinfo/twill</a><br></blockquote></div><br>