title: Form filling and pressing javascript buttons in python
body: <p>I want to automate form filling on a website with information of certain parameters that will return products based on the parameters I enter. I tried using mechanize in python but it does not support javascript and it seems like in order to navigate the entire process of filling in parameters requires pressing some buttons that seem like javascript objects. For instance the Guided Selection button: </p>
  
  <pre><code>    &lt;a onclick="_gaq.push([&amp;#39;_trackEvent&amp;#39;, &amp;#39;Navigation Menu&amp;#39;, &amp;#39;Click&amp;#39;, &amp;#39;Guided Selection Link&amp;#39;]);" id="ctl00_NavigationMenu_ConfigureLink" href="javascript:__doPostBack(&amp;#39;ctl00$NavigationMenu$ConfigureLink&amp;#39;,&amp;#39;&amp;#39;)"&gt;Guided Selection&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>I also tried using selenium but I do not want to create a new instance of a browser. Any python based suggestions? Perhaps jython? Thanks a lot!</p>