I am clicking a submit button using this:
$(\'input[type=submit]\').click();
The problem is that I have more that 1 submit button on my page s
If you add a marker, like a specific id or class to your input, you can make your selector more specific. For example, if you give the button you want the ID of form-btn like this:
input
form-btn
You can select it like this:
$('input[type=submit]#form-btn').click();
Or just:
$('#form-btn').click();