Like ``.set()``, except also confirms the target is a `` `` and allows selecting options by text.
(self, name, value=None, text=None, index=None)
| 597 | return fields[index] |
| 598 | |
| 599 | def select(self, name, value=None, text=None, index=None): |
| 600 | """Like ``.set()``, except also confirms the target is a ``<select>`` |
| 601 | and allows selecting options by text. |
| 602 | """ |
| 603 | field = self.get(name, index=index) |
| 604 | assert isinstance(field, Select) |
| 605 | |
| 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 |