utils.webelem: Don't treat select boxes as editable.

This commit is contained in:
Florian Bruhin 2014-08-22 07:54:48 +02:00
parent 4acd37edd0
commit e576ff608f
2 changed files with 2 additions and 2 deletions

View File

@ -368,7 +368,7 @@ class IsEditableTests(unittest.TestCase):
def test_select(self):
"""Test selectbox."""
elem = FakeWebElement(tagname='select')
self.assertTrue(webelem.is_editable(elem))
self.assertFalse(webelem.is_editable(elem))
def test_input_disabled(self):
"""Test disabled input element."""

View File

@ -258,7 +258,7 @@ def is_editable(elem, strict=False):
return True
elif tag == 'input':
return _is_editable_input(elem)
elif tag in ('textarea', 'select'):
elif tag == 'textarea':
return is_writable(elem)
elif tag in ('embed', 'applet'):
# Flash/Java/...