Commit b5f87ddb b5f87ddbb1cd04367fb076d4ff577a256a34a6ae by Nicolas Perriault

added support for new html5 input types in Casper#fill

1 parent 436eabb1
Showing 1 changed file with 14 additions and 0 deletions
......@@ -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":
......