Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #62 from sorich87/master

Allowing for button[type=submit] elements to be clicked
  • Loading branch information...
commit ff5ce9fa5256a8422c52e0ee874b918c3a0b8e37 2 parents 4eaf8b3 + a2ca84c
@tj tj authored
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();
Please sign in to comment.
Something went wrong with that request. Please try again.