Question: I'd like to complete an autologin script, but I need to find and click a button without ID or Name.

```
<input type="submit" class="recaptcha-submit btn btn-lg btn-fill btn-primary" value="Přihlaste se">

```

How can I find such element using javascript?

thanks

Answer: 
Since the button is a `submit` button, one option is to submit the form rather than clicking the submit button. If your form is called `myForm`, you can try this:

```
document.forms['myForm'].submit();

```
Thanks H77 for working solution:

```
var loginbtn = document.querySelector("#login > form > div.form-group.button-group > input").click();

```