Explicit wait until the element's classes contains the expected `classname`. timeout if not set, equals to the fixture's `wait_timeout` shortcut to `WebDriverWait` with customized `contains_class` condition.
(self, selector, classname, timeout=None)
| 370 | ) |
| 371 | |
| 372 | def wait_for_contains_class(self, selector, classname, timeout=None): |
| 373 | """Explicit wait until the element's classes contains the expected `classname`. |
| 374 | |
| 375 | timeout if not set, equals to the fixture's `wait_timeout` |
| 376 | shortcut to `WebDriverWait` with customized `contains_class` |
| 377 | condition. |
| 378 | """ |
| 379 | return self._wait_for( |
| 380 | method=contains_class(selector, classname), |
| 381 | timeout=timeout, |
| 382 | msg=f"classname -> {classname} not found inside element within {timeout or self._wait_timeout}s", |
| 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`. |
nothing calls this directly
no test coverage detected