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
1a431de1
...
1a431de1760e373d1d5da70484e920b5a537ded4
authored
2011-12-30 15:02:42 +0100
by
Jan Pochyla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
use ClientUtils.findOne insted of raw querySelector
1 parent
d0ec8d84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
lib/casper.js
lib/casper.js
View file @
1a431de
...
...
@@ -473,7 +473,7 @@
// Form submission?
if
(
submit
)
{
this
.
evaluate
(
function
(
selector
)
{
var
form
=
document
.
querySelector
(
selector
);
var
form
=
__utils__
.
findOne
(
selector
);
var
method
=
form
.
getAttribute
(
'method'
).
toUpperCase
()
||
"GET"
;
var
action
=
form
.
getAttribute
(
'action'
)
||
"unknown"
;
__utils__
.
log
(
'submitting form to '
+
action
+
', HTTP '
+
method
,
'info'
);
...
...
Please
register
or
sign in
to post a comment