在填充之前有没有办法用CasperJS或PhantomJS清除输入字段?
我已经尝试过sendKeys('input_field', "data", clear:true);并fill运行了函数,但是所有这些函数都只是附加了输入字段而不是之前清除它.
sendKeys('input_field', "data", clear:true);
fill
input phantomjs casperjs
casperjs ×1
input ×1
phantomjs ×1