Commit 8327c685 8327c6853ba5af1877ecb196709df00e6c408911 by Nicolas Perriault

closes #350 - Add a Casper.waitForSelectorTextChange() method

1 parent 61b83b86
...@@ -65,6 +65,7 @@ Last, all the casper test suites have been upgraded to use the new testing featu ...@@ -65,6 +65,7 @@ Last, all the casper test suites have been upgraded to use the new testing featu
65 ### Bugfixes & enhancements 65 ### Bugfixes & enhancements
66 66
67 - closed [#392](https://github.com/n1k0/casperjs/issues/392) - `--direct` & `--log-level` options available for the `casperjs` executable 67 - closed [#392](https://github.com/n1k0/casperjs/issues/392) - `--direct` & `--log-level` options available for the `casperjs` executable
68 - closed [#350](https://github.com/n1k0/casperjs/issues/350) - Add a Casper.waitForSelectorTextChange() method
68 69
69 2013-02-08, v1.0.2 70 2013-02-08, v1.0.2
70 ------------------ 71 ------------------
......
...@@ -459,6 +459,7 @@ ...@@ -459,6 +459,7 @@
459 * @return Mixed 459 * @return Mixed
460 */ 460 */
461 this.getFieldValue = function getFieldValue(inputName, options) { 461 this.getFieldValue = function getFieldValue(inputName, options) {
462 options = options || {};
462 function getSingleValue(input) { 463 function getSingleValue(input) {
463 var type; 464 var type;
464 try { 465 try {
...@@ -496,7 +497,7 @@ ...@@ -496,7 +497,7 @@
496 } 497 }
497 var formSelector = ''; 498 var formSelector = '';
498 if (options && options.formSelector) { 499 if (options && options.formSelector) {
499 formSelector = options.formSelector + ' '; 500 formSelector = options.formSelector + ' ';
500 } 501 }
501 var inputs = this.findAll(formSelector + '[name="' + inputName + '"]'); 502 var inputs = this.findAll(formSelector + '[name="' + inputName + '"]');
502 switch (inputs.length) { 503 switch (inputs.length) {
......