Explicit wait until the element's style has expected `value` timeout if not set, equals to the fixture's `wait_timeout` shortcut to `WebDriverWait` with customized `style_to_equal` condition.
(self, selector, style, val, timeout=None)
| 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 |
| 349 | if not set, equals to the fixture's `wait_timeout` shortcut to |
| 350 | `WebDriverWait` with customized `style_to_equal` condition.""" |
| 351 | return self._wait_for( |
| 352 | method=style_to_equal(selector, style, val), |
| 353 | timeout=timeout, |
| 354 | msg=f"style val => {style} {val} not found within {timeout or self._wait_timeout}s", |
| 355 | ) |
| 356 | |
| 357 | def wait_for_text_to_equal(self, selector, text, timeout=None): |
| 358 | """Explicit wait until the element's text equals the expected `text`. |