Explicit wait until the element's text contains the expected `text`. timeout if not set, equals to the fixture's `wait_timeout` shortcut to `WebDriverWait` with customized `contains_text` condition.
(self, selector, text, timeout=None)
| 383 | ) |
| 384 | |
| 385 | def wait_for_contains_text(self, selector, text, timeout=None): |
| 386 | """Explicit wait until the element's text contains the expected `text`. |
| 387 | |
| 388 | timeout if not set, equals to the fixture's `wait_timeout` |
| 389 | shortcut to `WebDriverWait` with customized `contains_text` |
| 390 | condition. |
| 391 | """ |
| 392 | method = contains_text(selector, text, timeout or self.wait_timeout) |
| 393 | return self._wait_for( |
| 394 | method=method, |
| 395 | timeout=timeout, |
| 396 | msg=method.message, |
| 397 | ) |
| 398 | |
| 399 | def wait_for_page(self, url=None, timeout=10): |
| 400 | """wait_for_page navigates to the url in webdriver wait until the |