Like ``.set()``, except also confirms the target is a `` `` and allows selecting options by text.
(self, name, value=None, texts=None, index=None)
| 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 |