Commit f7ae9a5c f7ae9a5c9b6238b80de938f3325c7011998eadf1 by Nicolas Perriault

refs #35 - backport of ded62ff4: Use ClientUtils.findOne instead of document.quer…

…ySelector in the Casper.fill method
1 parent 8999c3b0
......@@ -478,7 +478,7 @@ Casper.prototype = {
// 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');
......