Commit ded62ff4 ded62ff4c9503f21a417e19ab07136c9b4fb1809 by Nicolas Perriault

Merge pull request #35 from jpochyla/master

Use ClientUtils.findOne instead of document.querySelector in the Casper.fill method
2 parents d0ec8d84 1a431de1
...@@ -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');
......