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
b5f87ddb
...
b5f87ddbb1cd04367fb076d4ff577a256a34a6ae
authored
2011-10-09 19:06:26 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added support for new html5 input types in Casper#fill
1 parent
436eabb1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
casper.js
casper.js
View file @
b5f87dd
...
...
@@ -675,8 +675,22 @@
case
"input"
:
var
type
=
field
.
getAttribute
(
'type'
)
||
"text"
;
switch
(
type
.
toLowerCase
())
{
case
"color"
:
case
"date"
:
case
"datetime"
:
case
"datetime-local"
:
case
"email"
:
case
"hidden"
:
case
"month"
:
case
"number"
:
case
"password"
:
case
"range"
:
case
"search"
:
case
"tel"
:
case
"text"
:
case
"time"
:
case
"url"
:
case
"week"
:
field
.
value
=
value
;
break
;
case
"checkbox"
:
...
...
Please
register
or
sign in
to post a comment