title: Automate website log-in and form filling?
body: <p>I'm trying to log in to a website and save an HTML page automatically (I want to be able to do this on a regular time interval). From the surface, this is a typical modern website where, if the user navigates directly to a "locked" URL, a log-in form pops up, and after logging in, the user is redirected to the intended page.</p>
  
  <p>I gave mechanize a shot (<a href="http://wwwsearch.sourceforge.net/mechanize/" rel="noreferrer">http://wwwsearch.sourceforge.net/mechanize/</a>) but it wasn't finding some form elements which were needed for login (hidden elements that have some values put in by a javascript function that runs when the user clicks the "log in" button).</p>
  
  <p>I played a bit with the "web browser" control in .NET but quickly lost interest because I couldn't even get it to submit a query on the Google page.</p>
  
  <p>I don't care what the language is; I'll learn it to solve this problem. At a minimum it has to work in Windows.</p>
  
  <p>A simple example, say, typing in a query into the Google search box would be a great bonus.</p>