Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
c465362a
...
c465362a8e3c32f30d74c026b6d1300fc9e516bb
authored
2012-05-01 12:34:09 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed invalid selector for some samples
1 parent
4019e76d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
samples/googlematch.js
samples/googlepagination.coffee
samples/googlematch.js
View file @
c465362
...
...
@@ -30,7 +30,7 @@ casper.start("http://google.fr/");
casper
.
each
(
terms
,
function
(
self
,
term
,
i
)
{
self
.
then
(
function
(
self
)
{
self
.
fill
(
'form[
name=f
]'
,
{
q
:
term
},
true
);
self
.
fill
(
'form[
action="/search"
]'
,
{
q
:
term
},
true
);
}).
then
(
function
(
self
)
{
var
score
=
self
.
fetchScore
();
scores
.
push
({
...
...
samples/googlepagination.coffee
View file @
c465362
...
...
@@ -11,7 +11,7 @@ if casper.cli.args.length == 0
casper
.
exit
()
casper
.
start
'http://google.com'
,
->
@
fill
'form[
name=f
]'
,
q
:
casper
.
cli
.
args
.
join
(
' '
),
true
@
fill
'form[
action="/search"
]'
,
q
:
casper
.
cli
.
args
.
join
(
' '
),
true
@
click
'input[value="Google Search"]'
casper
.
then
->
...
...
Please
register
or
sign in
to post a comment