How to set value of an input tag in casperJs

casperjs, phantomjs, web-scraping

Solution

Using `casper.sendKeys('selector', value);`

http://casperjs.readthedocs.org/en/latest/modules/casper.html#sendkeys

Problem

I have input element as shown : `<input type="text" class="bg-white" id="couponCode" value="">` How can i set/fill its value using casperJs

Original source