Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add fallback to fill_form for unknown input types.

  • Loading branch information...
commit 5545f1357f223b6c8f03b7adf33d0c4ce73caa79 1 parent e7f6dc0
@victorhooi victorhooi authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  splinter/driver/webdriver/__init__.py
View
2  splinter/driver/webdriver/__init__.py
@@ -248,6 +248,8 @@ def fill_form(self, field_values):
field.click()
elif element._element.tag_name == 'select':
element.find_by_value(value).first._element.click()
+ else:
+ element.value = value
def type(self, name, value, slowly=False):
element = self.driver.find_element_by_css_selector('[name="%s"]' % name)
Please sign in to comment.
Something went wrong with that request. Please try again.