为什么 CasperJS 用 [object Object] 填充文本输入

Why CasperJS fills text input with [object Object]

我用这段代码来填充文本输入

spooky.then([{question: question}, function(question) {
       this.fill('form[name="askmore"]', { questionask: question}, false);
 }]);

我在 question 中有一个有效的刺痛。这是一个表单标记:

<form action="" name="askmore" id="askmore" method="post" onsubmit="return false;">
<table cellspacing="0" cellpadding="0" border="0">
<tbody><tr><td>
<input type="text" maxlength="400" name="questionask" id="questionask" style="padding-left:15px; margin-left:45px; font-size:20px; width:480px; height:43px; border:0px; background-color:#d4d4d4; ">
</td>
<td>
<img hspace="15" src="/images/button.png" id="send" style="cursor: pointer;">
</td></tr></tbody></table></form>

有人知道如何解决这个问题吗?我想我做的就像 CasperJS documentation

的例子一样

不要将 question 作为参数传递:

spooky.then([{question: question}, function() {
    this.fill('form[name="askmore"]', { questionask: question}, false);
}]);