title: Automatic clicking an button in JavaFX Webview
body: <p>I am working an an JavaFX Webbrowser that can autologin to some sites, i know how to set the data to username and password fields but how to i make it execute the login button click?
  This is what i got so far:</p>
  
  <pre><code>String email  =  "document.getElementsByName('email')[0].value='MY_EMAIL';";
              String pass =    "document.getElementsByName('pass')[0].value='MY_PASSWORD';";
              String login =   "";
              webEngine.executeScript(email);
              webEngine.executeScript(pass);
              webEngine.executeScript(login);
  </code></pre>
  
  <p>and this is the javascript code of the button it should click:</p>
  
  <pre><code>&lt;label class="uiButton uiButtonConfirm" id="loginbutton" for="u_0_c"&gt;&lt;input value="Aanmelden" tabindex="4" type="submit" id="u_0_c"&gt;&lt;/label&gt;  
  </code></pre>