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> &lt;<a href="mailto:peppers@gmail.com">peppers@gmail.com</a>&gt; 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 &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>&gt;&gt;&gt; from twill.commands import *<br>&gt;&gt;&gt; go(&quot;<a href="http://sunsolve.sun.com">http://sunsolve.sun.com
</a>&quot;)<br>Following HTTP-EQUIV=REFRESH to /show.do?target=home<br>==&gt; at <a href="http://sunsolve.sun.com/show.do?target=tous">http://sunsolve.sun.com/show.do?target=tous</a><br>&#39;<a href="http://sunsolve.sun.com/show.do?target=tous">
http://sunsolve.sun.com/show.do?target=tous</a>&#39;<br>&gt;&gt;&gt; showforms()<br><br>Form name=search (#1)<br>## ## __Name__________________ __Type___ __ID________ __Value__________________<br>1&nbsp;&nbsp;&nbsp;&nbsp; charset&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hidden&nbsp;&nbsp;&nbsp;&nbsp;(None)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UTF-8
<br>2&nbsp;&nbsp;&nbsp;&nbsp; terms&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;searchfield&nbsp;&nbsp;Search<br>3&nbsp;&nbsp;&nbsp;&nbsp; menu&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; select&nbsp;&nbsp;&nbsp;&nbsp;searchpull<br>[&#39;/search/advsearch.do?collection=al ...<br>4&nbsp;&nbsp;1&nbsp;&nbsp;None&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; image&nbsp;&nbsp;&nbsp;&nbsp; searchbttn&nbsp;&nbsp; Â Â»Â
<br>5&nbsp;&nbsp;&nbsp;&nbsp; origin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hidden&nbsp;&nbsp;&nbsp;&nbsp;(None)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; quick<br>6&nbsp;&nbsp;&nbsp;&nbsp; wholewords&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hidden&nbsp;&nbsp;&nbsp;&nbsp;(None)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; checked<br><br><br>Form name=tou (#2)<br>## ## __Name__________________ __Type___ __ID________ __Value__________________
<br>1&nbsp;&nbsp;&nbsp;&nbsp; accept&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hidden&nbsp;&nbsp;&nbsp;&nbsp;(None)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; N<br>2&nbsp;&nbsp;&nbsp;&nbsp; touText&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;textarea&nbsp;&nbsp;(None)<br>SUNSOLVE LICENSE AGREEMENT<br><br>PLEA ...<br>3&nbsp;&nbsp;&nbsp;&nbsp; Print&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;button&nbsp;&nbsp;&nbsp;&nbsp;(None)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; None<br>
4&nbsp;&nbsp;&nbsp;&nbsp; None&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; button&nbsp;&nbsp;&nbsp;&nbsp;(None)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; None<br>5&nbsp;&nbsp;&nbsp;&nbsp; None&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; button&nbsp;&nbsp;&nbsp;&nbsp;(None)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; None<br><br><br>Form name=survey (#3)<br>## ## __Name__________________ __Type___ __ID________ __Value__________________
<br>1&nbsp;&nbsp;&nbsp;&nbsp; Recommend&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;&nbsp;&nbsp;&nbsp;(None)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&#39;-1&#39;] of [&#39;-1&#39;,<br>&#39;10&#39;, &#39;9&#39;, &#39;8&#39;, &#39;7&#39; ...<br>2&nbsp;&nbsp;&nbsp;&nbsp; URL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hidden&nbsp;&nbsp;&nbsp;&nbsp;(None)<br>3&nbsp;&nbsp;1&nbsp;&nbsp;None&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; submit&nbsp;&nbsp;&nbsp;&nbsp;(None)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Â SubmitÂ
<br><br>&lt;generator object at 0x7c51c0&gt;<br>&gt;&gt;&gt;<br>---- END SNIP ----<br><br>Now looking @ the source of the page the element you want is this, I think:<br><br>&lt;form name=&quot;tou&quot; method=&quot;POST&quot; action=&quot;/FRONTDOOR&quot;&gt;
<br>&lt;input type=&quot;hidden&quot; name=&quot;accept&quot; value=&quot;N&quot;&gt;<br><br>I figured you&#39;d be able to say something like: fv(2, &quot;accept&quot;, &quot;Y&quot;)<br>and yet when you do that I get this from Twill:
<br><br>&gt;&gt;&gt; fv(2, &quot;accept&quot;, &quot;Y&quot;)<br>form field is read-only or ignorable; nothing done.<br>&gt;&gt;&gt; fv(2, &quot;accept&quot;, 1)<br>form field is read-only or ignorable; nothing done.<br>&gt;&gt;&gt;
<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> &lt;<a href="mailto:twill-request@lists.idyll.org">
twill-request@lists.idyll.org</a>&gt; wrote:<br>&gt; Send twill mailing list submissions to<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:twill@lists.idyll.org">twill@lists.idyll.org</a><br>&gt;<br>&gt; To subscribe or unsubscribe via the World Wide Web, visit
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://lists.idyll.org/listinfo/twill">http://lists.idyll.org/listinfo/twill</a><br>&gt; or, via email, send a message with subject or body &#39;help&#39; to<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:twill-request@lists.idyll.org">
twill-request@lists.idyll.org</a><br>&gt;<br>&gt; You can reach the person managing the list at<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:twill-owner@lists.idyll.org">twill-owner@lists.idyll.org</a><br>&gt;<br>&gt; When replying, please edit your Subject line so it is more specific
<br>&gt; than &quot;Re: Contents of twill digest...&quot;<br>&gt;<br>&gt;<br>&gt; Today&#39;s Topics:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;1.&nbsp;&nbsp;calling javascript function in twill (prasanth allada)<br>&gt;<br>&gt;<br>&gt; ----------------------------------------------------------------------
<br>&gt;<br>&gt; Message: 1<br>&gt; Date: Wed, 15 Aug 2007 00:40:35 +0530<br>&gt; From: &quot;prasanth allada&quot; &lt;<a href="mailto:prasanth.allada@gmail.com">prasanth.allada@gmail.com</a>&gt;<br>&gt; Subject: [twill] calling javascript function in twill
<br>&gt; To: <a href="mailto:twill@lists.idyll.org">twill@lists.idyll.org</a><br>&gt; Message-ID:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<a href="mailto:a07dd2c70708141210u470fb652s2c25757399801dc9@mail.gmail.com">a07dd2c70708141210u470fb652s2c25757399801dc9@mail.gmail.com
</a>&gt;<br>&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>&gt;<br>&gt; hi<br>&gt;<br>&gt; i want to access a site which contains a javascript using twill via python<br>&gt; whenever i try to access the following site&nbsp;&nbsp;
<a href="http://sunsolve.sun.com">http://sunsolve.sun.com</a><br>&gt; i am redirected to a different page which contains a license agreement.<br>&gt; this page contains a javascript which has a hidden button whose value is
<br>&gt; changed using the javascript. i hav to click on tat hidden button to proceed<br>&gt; to my required url.<br>&gt; unless i click on that button i cannot access the required information.<br>&gt; does anyone have ne suggestions for this problem
<br>&gt;<br>&gt; thanks and regards<br>&gt; prasanth<br>&gt; -------------- next part --------------<br>&gt; An HTML attachment was scrubbed...<br>&gt; 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>&gt;<br>&gt; ------------------------------<br>&gt;<br>&gt; _______________________________________________<br>&gt; twill mailing list
<br>&gt; <a href="mailto:twill@lists.idyll.org">twill@lists.idyll.org</a><br>&gt; <a href="http://lists.idyll.org/listinfo/twill">http://lists.idyll.org/listinfo/twill</a><br>&gt;<br>&gt;<br>&gt; End of twill Digest, Vol 25, Issue 3
<br>&gt; ************************************<br>&gt;<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>