n1k0/casperjs — pull request #428 by jfparadis (2013-03-20 12:41:31+00:00)
Title: refs #427 - Added sendKeys options keepFocus (with docs and test)

Adds to ``sendKeys()`` an option to prevent losing focus which is useful when testing autocomplete widgets. For example, to pick the first suggestion in an autocomplete drop down, one could use:

this.sendKeys('input[name="language"]', 'fr', {keepFocus: true});
this.click('#autocomplete li:first-child');

Also:
- The documentation has been updated.
- The test harness has been updated to test that the option works with an autocomplete widget. A custom bare-bone autocomplete widget had been added to ``form.html`` to allow testing without impacting the speed of the test harness.