Esteemed CasperJS community:
In short, where the existing casper.fetchText() method will catenate the matched text into a single string, the proposed casper.fetchTexts() will return the a list of strings:
this.echo(this.fetchText('h3'));
}).run(); // => 'NavigationTable Of ContentsIndexThis PageQuick searchDonateNavigation'
this.echo(this.fetchTexts('h3'));
}).run(); // => ['Navigation', 'Table Of Contents', 'Index', 'This Page', 'Quick search', 'Donate', 'Navigation']
- rdp