title: Automatizing web browser form filling in Python
body: <h3>Question:</h3>
  <p>Hi. I am a beginner trying to learn Python, and for one of my first projects <strong>I want to write a script that will fill out a survey automatically for me</strong>. I am familiar with coding, and I have most of the code written to solve this problem. What I am struggling is to write a method that will hit button #1 in question #1, or that will push any given button. One way I've realized I can do this, is perhaps by writing a script to press tab-&gt; up-&gt; down-&gt; tab-&gt; up -&gt; down in the order needed to answer all of the questions.</p>
  <p>Here is an image of what the survey looks like (CSS was disable for clarity).
  <a href="https://i.imgur.com/Tn94KFA.jpg" rel="noreferrer">http://i.imgur.com/Tn94KFA.jpg</a></p>
  <p><strong><em>What is one way to go about writing a method to push a radio button</em>?</strong></p>
  <hr />
  <p>[<strong>Disclaimer</strong>]: I have checked out the following questions but they were of no use to me in my current situation:</p>
  <ul>
  <li><a href="https://stackoverflow.com/questions/16128552/fill-out-a-webform-that-uses-javascript-with-python">fill out a webform that uses javascript with python</a> (question was framed very strangely and was about Javascript forums, which I don't understand how it is relevant/ I didn't understand it, and nobody answered the question).</li>
  <li><a href="https://stackoverflow.com/questions/1364291/script-to-take-web-survey-for-me">Script to take web survey for me</a> (answers were only about Java, however something like this <a href="http://htmlunit.sourceforge.net/" rel="noreferrer">tool called HtmlUnit</a> seems cool, if there were a comparable library in Python).</li>
  <li><a href="https://stackoverflow.com/questions/6705112/how-to-fill-out-form-data-on-a-website">How to fill out form data on a website</a> (question is about Java).</li>
  </ul>