MCPcopy Index your code
hub / github.com/Pylons/webtest / select_multiple

Method select_multiple

webtest/forms.py:608–615  ·  view source on GitHub ↗

Like ``.set()``, except also confirms the target is a `` `` and allows selecting options by text.

(self, name, value=None, texts=None, index=None)

Source from the content-addressed store, hash-verified

606 field.select(value, text)
607
608 def select_multiple(self, name, value=None, texts=None, index=None):
609 """Like ``.set()``, except also confirms the target is a
610 ``<select multiple>`` and allows selecting options by text.
611 """
612 field = self.get(name, index=index)
613 assert isinstance(field, MultipleSelect)
614
615 field.select_multiple(value, texts)
616
617 def submit(self, name=None, index=None, value=None, **args):
618 """Submits the form. If ``name`` is given, then also select that

Callers 1

test_multiple_selectMethod · 0.45

Calls 1

getMethod · 0.95

Tested by 1

test_multiple_selectMethod · 0.36