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
19a08203
...
19a08203b281a9dc4d23fabd74363014df90de7c
authored
2013-05-10 14:54:27 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
code formatting
1 parent
e9218ef9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
modules/casper.js
modules/casper.js
View file @
19a0820
...
...
@@ -1548,11 +1548,11 @@ Casper.prototype.sendKeys = function(selector, keys, options) {
eventType
:
'keypress'
},
options
||
{});
var
elemInfos
=
this
.
getElementInfo
(
selector
),
tag
=
elemInfos
.
nodeName
.
toLowerCase
(),
type
=
utils
.
getPropertyPath
(
elemInfos
,
'attributes.type'
),
supported
=
[
"color"
,
"date"
,
"datetime"
,
"datetime-local"
,
"email"
,
"hidden"
,
"month"
,
"number"
,
"password"
,
"range"
,
"search"
,
"tel"
,
"text"
,
"time"
,
"url"
,
"week"
],
tag
=
elemInfos
.
nodeName
.
toLowerCase
(),
type
=
utils
.
getPropertyPath
(
elemInfos
,
'attributes.type'
),
supported
=
[
"color"
,
"date"
,
"datetime"
,
"datetime-local"
,
"email"
,
"hidden"
,
"month"
,
"number"
,
"password"
,
"range"
,
"search"
,
"tel"
,
"text"
,
"time"
,
"url"
,
"week"
],
isTextInput
=
false
;
if
(
tag
===
'textarea'
||
(
tag
===
'input'
&&
supported
.
indexOf
(
type
)
!==
-
1
))
{
// clicking on the input element brings it focus
...
...
Please
register
or
sign in
to post a comment