Merge pull request #653 from ebouchut/typo
Fix typo in documentation.
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -1467,7 +1467,7 @@ Options | ... | @@ -1467,7 +1467,7 @@ Options |
1467 | - ``(Boolean) keepFocus``: | 1467 | - ``(Boolean) keepFocus``: |
1468 | 1468 | ||
1469 | 1469 | ||
1470 | ``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:: | 1470 | ``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:: |
1471 | 1471 | ||
1472 | casper.then(function() { | 1472 | casper.then(function() { |
1473 | this.sendKeys('form.contact input#name', 'action', {keepFocus: true}); | 1473 | this.sendKeys('form.contact input#name', 'action', {keepFocus: true}); |
... | @@ -2034,7 +2034,7 @@ Wait until a resource that matches the given ``testFx`` is loaded to process a n | ... | @@ -2034,7 +2034,7 @@ Wait until a resource that matches the given ``testFx`` is loaded to process a n |
2034 | 2034 | ||
2035 | .. versionadded:: 1.1 | 2035 | .. versionadded:: 1.1 |
2036 | 2036 | ||
2037 | Waits for the current pahe url to match the provided argument (``String`` or ``RegExp``):: | 2037 | Waits for the current page url to match the provided argument (``String`` or ``RegExp``):: |
2038 | 2038 | ||
2039 | casper.start('http://foo/').waitForUrl(/login\.html$/, function() { | 2039 | casper.start('http://foo/').waitForUrl(/login\.html$/, function() { |
2040 | this.echo('redirected to login.html'); | 2040 | this.echo('redirected to login.html'); | ... | ... |
-
Please register or sign in to post a comment