Same as self.add_text() Similar to update_text(), but won't clear the text field first.
(self, selector, text, by="css selector", timeout=None)
| 1122 | self.update_text(selector, text, by=by, timeout=timeout, retry=retry) |
| 1123 | |
| 1124 | def send_keys(self, selector, text, by="css selector", timeout=None): |
| 1125 | """Same as self.add_text() |
| 1126 | Similar to update_text(), but won't clear the text field first.""" |
| 1127 | self.__check_scope() |
| 1128 | if not timeout: |
| 1129 | timeout = settings.LARGE_TIMEOUT |
| 1130 | if self.timeout_multiplier and timeout == settings.LARGE_TIMEOUT: |
| 1131 | timeout = self.__get_new_timeout(timeout) |
| 1132 | selector, by = self.__recalculate_selector(selector, by) |
| 1133 | self.add_text(selector, text, by=by, timeout=timeout) |
| 1134 | |
| 1135 | def press_keys(self, selector, text, by="css selector", timeout=None): |
| 1136 | """Use send_keys() to press one key at a time.""" |
no test coverage detected