Skip to content
Browse files

Allow for button[type=submit] elements to be clicked

  • Loading branch information...
1 parent 4eaf8b3 commit a2ca84c3aac2afda1cd0a631a2647e6fff733033 @sorich87 sorich87 committed
Showing with 2 additions and 1 deletion.
  1. +1 −1 Readme.md
  2. +1 −0 lib/jquery/index.js
View
2 Readme.md
@@ -114,7 +114,7 @@ The following locators will match the input:
### Browser#click(locator[, fn])
-Tobi allows you to `click()` `a` elements, and `input[type=submit]` elements in order to submit a form, or request a url.
+Tobi allows you to `click()` `a` elements, `button[type=submit]` elements, and `input[type=submit]` elements in order to submit a form, or request a url.
Submitting a form:
View
1 lib/jquery/index.js
@@ -93,6 +93,7 @@ module.exports = function(browser, $){
url = this.attr('href');
break;
case 'INPUT':
+ case 'BUTTON':
if ('submit' == this.attr('type')) {
var form = this.parents('form').last();
form.defaultSelectOptions();

0 comments on commit a2ca84c

Please sign in to comment.
Something went wrong with that request. Please try again.