Ensure we click <input type="submit"> elements

Fixes #1341.