Explicit wait until the element's class has expected `value` timeout if not set, equals to the fixture's `wait_timeout` shortcut to `WebDriverWait` with customized `class_to_equal` condition.
(self, selector, classname, timeout=None)
| 335 | ) |
| 336 | |
| 337 | def wait_for_class_to_equal(self, selector, classname, timeout=None): |
| 338 | """Explicit wait until the element's class has expected `value` timeout |
| 339 | if not set, equals to the fixture's `wait_timeout` shortcut to |
| 340 | `WebDriverWait` with customized `class_to_equal` condition.""" |
| 341 | return self._wait_for( |
| 342 | method=class_to_equal(selector, classname), |
| 343 | timeout=timeout, |
| 344 | msg=f"classname => {classname} not found within {timeout or self._wait_timeout}s", |
| 345 | ) |
| 346 | |
| 347 | def wait_for_style_to_equal(self, selector, style, val, timeout=None): |
| 348 | """Explicit wait until the element's style has expected `value` timeout |