@@ -116,6 +116,7 @@ Last, all the casper test suites have been upgraded to use the new testing featu
- fixed [#441](https://github.com/n1k0/casperjs/issues/441) - added `--ssl-protocol` option support to the `casperjs` executable
- Added [`Casper#fillSelectors()`](http://docs.casperjs.org/en/latest/modules/casper.html#fillselectors) and [`Casper#fillXPath()`](http://docs.casperjs.org/en/latest/modules/casper.html#fillxpath)
- Added [`Casper#getElementsAttribute()`](http://docs.casperjs.org/en/latest/modules/casper.html#getelementsattribute) and [`Casper#getElementsInfo()`](http://docs.casperjs.org/en/latest/modules/casper.html#getelementsinfo)
- Added support for key modifiers to `Casper#sendKeys()`
-`cli`: Now dropping an arg or an option will be reflected in their *raw* equivalent
@@ -1419,12 +1419,37 @@ Sends native keyboard events to the element matching the provided :doc:`selector
this.click('form.contact input[type="submit"]');
});
Note that ``sendKeys()`` by default will remove the focus on text input fields, which will typically close autocomplete widgets. If you want to maintain focus, use the ``keepFocus`` option. For example, if using jQuery-UI, you can click on the first autocomplete suggestion using::
.. versionadded:: 1.1
Options
~~~~~~~
- ``(Boolean) keepFocus``:
``sendKeys()`` by default will remove the focus on text input fields, which will typically close autocomplete widgets. If you want to maintain focus, us e the ``keepFocus`` option. For example, if using jQuery-UI, you can click on the first autocomplete suggestion using::
``sendKeys()`` accepts a ``modifiers`` option to support key modifiers. The options is a string representing the composition of modifiers to use, separated by the ``+`` character::