title: How to click the login button with selenium?
body: <p>How do I click the <code>submit</code> button in this form with selenium?</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;form name="loginform" method="post" action="https://ap.hongik.ac.kr/login/LoginExec3.php"
    onsubmit="chkFrontLogin();return false;"&gt;
    &lt;div class="t"&gt;
      &lt;div class="r"&gt;
        &lt;div class="c q1"&gt;
          &lt;div class="id"&gt;&lt;label&gt;id&lt;/label&gt;&lt;input type="text" name="USER_ID"&gt;&lt;/div&gt;
          &lt;div class="pw"&gt;&lt;label&gt;password&lt;/label&gt;&lt;input type="password" name="PASSWD"&gt;&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="c q2"&gt;
          &lt;button type="submit" class="button submit"&gt;&lt;span class="lbl"&gt;login&lt;/span&gt;&lt;/button&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;input type="hidden" name="Refer" value="http://gw.hongik.ac.kr/index.php"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>My code</strong></p>
  
  <pre><code>driver.find_element_by_xpath("//div[@id='main']/div[@class='align']/table/tbody/tr/td/form/button").click()
  </code></pre>
  
  <p>I used xpath and searched stackoverflow.</p>
  
  <p>I cannot find a clue for the error(NosuchElementException).</p>