Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Allowing for button[type=submit] elements to be clicked #62

Merged
merged 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 28, 2011
  1. @sorich87
This page is out of date. Refresh to see the latest.
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();
Something went wrong with that request. Please try again.