A script to select multiple options for category in this form:
.. code-block :: javascript
casper.then(function() {
this.fill('form#contact-form', {
'categories': ['0', '1'] // Friends and Family
});
});
.. warning::
1. The ``fill()`` method currently can't fill **file fields using XPath selectors**; PhantomJS natively only allows the use of CSS3 selectors in its ``uploadFile()`` method, hence this limitation.
...
...
@@ -2309,4 +2333,3 @@ Sets the current page zoom factor::