Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

casperjs: get form field value

I have an v1.0.0-RC4 casper version without Casper.getFormValues() useful function and I can't to upgrade casper by some reasons.

Is there any other way to get form fields values?

like image 906
JuliaCesar Avatar asked Jul 10 '26 01:07

JuliaCesar


1 Answers

So, the answer was found: to get a field value, have a look at ClientUtils.getFieldValue()

casper.then(function() {
    this.echo(this.evaluate(function() {
        return __utils__.getFieldValue('fieldName');
    }));
});
like image 147
JuliaCesar Avatar answered Jul 14 '26 07:07

JuliaCesar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!