Permalink
Browse files

Add input type="tel" and fallback for Zope Driver.

  • Loading branch information...
1 parent 00f92d1 commit 33c5b48e2e38231febc5786c544d7f83f2a97b1b @victorhooi victorhooi committed Jan 20, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 splinter/driver/zopetestbrowser.py
@@ -173,7 +173,7 @@ def fill_form(self, field_values):
for name, value in field_values.items():
element = self.find_by_name(name)
control = element.first._control
- if control.type in ['text', 'textarea', 'password']:
+ if control.type in ['text', 'textarea', 'password', 'tel']:
control.value = value
elif control.type == 'checkbox':
if value:
@@ -184,6 +184,8 @@ def fill_form(self, field_values):
control.value = [option for option in control.options if option == value]
elif control.type == 'select':
control.value = [value]
+ else:
+ control.value = [value]
def choose(self, name, value):
control = self._browser.getControl(name=name)

0 comments on commit 33c5b48

Please sign in to comment.