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
ff3714f8
...
ff3714f8747ddadc21c955eaa7e9590b6aa94138
authored
2012-04-13 08:48:17 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixes #92 - form submit fails when form element doesn't have method field
1 parent
02f08da1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
modules/casper.js
modules/casper.js
View file @
ff3714f
...
...
@@ -517,7 +517,7 @@ Casper.prototype.fill = function fill(selector, vals, submit) {
if
(
submit
)
{
this
.
evaluate
(
function
(
selector
)
{
var
form
=
__utils__
.
findOne
(
selector
);
var
method
=
form
.
getAttribute
(
'method'
).
toUpperCase
()
||
"GET"
;
var
method
=
(
form
.
getAttribute
(
'method'
)
||
"GET"
).
toUpperCase
()
;
var
action
=
form
.
getAttribute
(
'action'
)
||
"unknown"
;
__utils__
.
log
(
'submitting form to '
+
action
+
', HTTP '
+
method
,
'info'
);
form
.
submit
();
...
...
Please
register
or
sign in
to post a comment