Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 33c5b48e2e38231febc5786c544d7f83f2a97b1b 1 parent 00f92d1
@victorhooi victorhooi authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 splinter/driver/zopetestbrowser.py
View
4 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)
Please sign in to comment.
Something went wrong with that request. Please try again.