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 @@
// Form submission?
if (submit) {
this.evaluate(function(selector) {
var form = document.querySelector(selector);
var form = __utils__.findOne(selector);
var method = form.getAttribute('method').toUpperCase() || "GET";
var action = form.getAttribute('action') || "unknown";
__utils__.log('submitting form to ' + action + ', HTTP ' + method, 'info');
......