Wait for and return the element(s) selected by css_selector.
(self, css_selector, timeout=10)
| 49 | raise RuntimeError(f'Javascript error: "{msg}".') |
| 50 | |
| 51 | def wait_until(self, css_selector, timeout=10): |
| 52 | """Wait for and return the element(s) selected by css_selector.""" |
| 53 | wait = WebDriverWait(self, timeout=timeout) |
| 54 | is_visible = visibility_of_element_located((By.CSS_SELECTOR, css_selector)) |
| 55 | return wait.until(is_visible) |
no outgoing calls
no test coverage detected