Merge pull request #35 from jpochyla/master
Use ClientUtils.findOne instead of document.querySelector in the Casper.fill method
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -473,7 +473,7 @@ | ... | @@ -473,7 +473,7 @@ |
473 | // Form submission? | 473 | // Form submission? |
474 | if (submit) { | 474 | if (submit) { |
475 | this.evaluate(function(selector) { | 475 | this.evaluate(function(selector) { |
476 | var form = document.querySelector(selector); | 476 | var form = __utils__.findOne(selector); |
477 | var method = form.getAttribute('method').toUpperCase() || "GET"; | 477 | var method = form.getAttribute('method').toUpperCase() || "GET"; |
478 | var action = form.getAttribute('action') || "unknown"; | 478 | var action = form.getAttribute('action') || "unknown"; |
479 | __utils__.log('submitting form to ' + action + ', HTTP ' + method, 'info'); | 479 | __utils__.log('submitting form to ' + action + ', HTTP ' + method, 'info'); | ... | ... |
-
Please register or sign in to post a comment