Commit c465362a c465362a8e3c32f30d74c026b6d1300fc9e516bb by Nicolas Perriault

fixed invalid selector for some samples

1 parent 4019e76d
...@@ -30,7 +30,7 @@ casper.start("http://google.fr/"); ...@@ -30,7 +30,7 @@ casper.start("http://google.fr/");
30 30
31 casper.each(terms, function(self, term, i) { 31 casper.each(terms, function(self, term, i) {
32 self.then(function(self) { 32 self.then(function(self) {
33 self.fill('form[name=f]', { q: term }, true); 33 self.fill('form[action="/search"]', { q: term }, true);
34 }).then(function(self) { 34 }).then(function(self) {
35 var score = self.fetchScore(); 35 var score = self.fetchScore();
36 scores.push({ 36 scores.push({
......
...@@ -11,7 +11,7 @@ if casper.cli.args.length == 0 ...@@ -11,7 +11,7 @@ if casper.cli.args.length == 0
11 casper.exit() 11 casper.exit()
12 12
13 casper.start 'http://google.com', -> 13 casper.start 'http://google.com', ->
14 @fill 'form[name=f]', q: casper.cli.args.join(' '), true 14 @fill 'form[action="/search"]', q: casper.cli.args.join(' '), true
15 @click 'input[value="Google Search"]' 15 @click 'input[value="Google Search"]'
16 16
17 casper.then -> 17 casper.then ->
......