added support for new html5 input types in Casper#fill
Showing
1 changed file
with
14 additions
and
0 deletions
... | @@ -675,8 +675,22 @@ | ... | @@ -675,8 +675,22 @@ |
675 | case "input": | 675 | case "input": |
676 | var type = field.getAttribute('type') || "text"; | 676 | var type = field.getAttribute('type') || "text"; |
677 | switch (type.toLowerCase()) { | 677 | switch (type.toLowerCase()) { |
678 | case "color": | ||
679 | case "date": | ||
680 | case "datetime": | ||
681 | case "datetime-local": | ||
682 | case "email": | ||
683 | case "hidden": | ||
684 | case "month": | ||
685 | case "number": | ||
678 | case "password": | 686 | case "password": |
687 | case "range": | ||
688 | case "search": | ||
689 | case "tel": | ||
679 | case "text": | 690 | case "text": |
691 | case "time": | ||
692 | case "url": | ||
693 | case "week": | ||
680 | field.value = value; | 694 | field.value = value; |
681 | break; | 695 | break; |
682 | case "checkbox": | 696 | case "checkbox": | ... | ... |
-
Please register or sign in to post a comment