Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个没有Casper.getFormValues()有用功能的 v1.0.0-RC4 casper 版本,由于某些原因我无法升级 casper。
Casper.getFormValues()
还有其他方法可以获取表单字段值吗?
所以,找到了答案:要获取一个字段值,看看ClientUtils.getFieldValue()
ClientUtils.getFieldValue()
casper.then(function() { this.echo(this.evaluate(function() { return __utils__.getFieldValue('fieldName'); })); });