title: submit() is not working with Selenium API
body: <p>I am trying to submit the form with selenium api submit(). Click() would not work definitely because it is form button.
  Element is "submit".
  element.submit() but nothing is happening.
  I am trying some java script solution to submit form.
  Here is the html:</p>
  
  <pre><code>&lt;form class="ng-pristinedfgd ngrg-valid"&gt;
  &lt;label class="input-width" for="userName"&gt;Username&lt;/label&gt;
  &lt;input type="text" class="input-width form-input " name="userName" autocomplete="off"&gt;
  &lt;label class="input-width" for="password"&gt;Password&lt;/label&gt;
  &lt;input type="password" class="input-width form-input " name="password" autocomplete="off"&gt;
  &lt;p class="forgot-utility"&gt;Need login help? Visit the utility website for direction.&lt;/p&gt;
  &lt;button type="**submit**" class="blue-button"&gt;Share Energy Usage&lt;/button
  &lt;/form&gt;
  </code></pre>
  
  <p>Any help would be much appreciated. Thanks in advance.</p>