fixed invalid selector for some samples
Showing
2 changed files
with
2 additions
and
2 deletions
... | @@ -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 -> | ... | ... |
-
Please register or sign in to post a comment