Commit afac330c afac330cd12d74031cf1380590bb7acca65760bc by Patrick Reagan

Update documentation with correct examples for fill methods

The examples for both `fillSelectors` and `fillXPath` referenced calls
to `fill`.  This commit corrects both examples.
1 parent 947f1baf
...@@ -938,7 +938,7 @@ Fills form fields with given values and optionally submits it. Fields ...@@ -938,7 +938,7 @@ Fills form fields with given values and optionally submits it. Fields
938 are referenced by ``CSS3`` selectors:: 938 are referenced by ``CSS3`` selectors::
939 939
940 casper.start('http://some.tld/contact.form', function() { 940 casper.start('http://some.tld/contact.form', function() {
941 this.fill('form#contact-form', { 941 this.fillSelectors('form#contact-form', {
942 'input[name="subject"]': 'I am watching you', 942 'input[name="subject"]': 'I am watching you',
943 'input[name="content"]': 'So be careful.', 943 'input[name="content"]': 'So be careful.',
944 'input[name="civility"]': 'Mr', 944 'input[name="civility"]': 'Mr',
...@@ -960,7 +960,7 @@ are referenced by ``CSS3`` selectors:: ...@@ -960,7 +960,7 @@ are referenced by ``CSS3`` selectors::
960 Fills form fields with given values and optionally submits it. While the ``form`` element is always referenced by a CSS3 selector, fields are referenced by ``XPath`` selectors:: 960 Fills form fields with given values and optionally submits it. While the ``form`` element is always referenced by a CSS3 selector, fields are referenced by ``XPath`` selectors::
961 961
962 casper.start('http://some.tld/contact.form', function() { 962 casper.start('http://some.tld/contact.form', function() {
963 this.fill('form#contact-form', { 963 this.fillXPath('form#contact-form', {
964 '//input[@name="subject"]': 'I am watching you', 964 '//input[@name="subject"]': 'I am watching you',
965 '//input[@name="content"]': 'So be careful.', 965 '//input[@name="content"]': 'So be careful.',
966 '//input[@name="civility"]': 'Mr', 966 '//input[@name="civility"]': 'Mr',
......