Rok*_*ius 3 input phantomjs casperjs
在填充之前有没有办法用CasperJS或PhantomJS清除输入字段?
我已经尝试过sendKeys('input_field', "data", clear:true);并fill运行了函数,但是所有这些函数都只是附加了输入字段而不是之前清除它.
该选项被称为reset:
casper.sendKeys('input_field', "data", { reset: true} );
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1486 次 |
| 最近记录: |