Check if the connection error modal is displayed. Args: driver: Selenium webdriver instance. Returns: True if the modal is displayed, False otherwise.
(driver: WebDriver)
| 135 | |
| 136 | |
| 137 | def has_error_modal(driver: WebDriver) -> bool: |
| 138 | """Check if the connection error modal is displayed. |
| 139 | |
| 140 | Args: |
| 141 | driver: Selenium webdriver instance. |
| 142 | |
| 143 | Returns: |
| 144 | True if the modal is displayed, False otherwise. |
| 145 | """ |
| 146 | try: |
| 147 | driver.find_element(By.XPATH, CONNECTION_ERROR_XPATH) |
| 148 | except NoSuchElementException: |
| 149 | return False |
| 150 | else: |
| 151 | return True |
| 152 | |
| 153 | |
| 154 | def has_cloud_banner(driver: WebDriver) -> bool: |
no outgoing calls
no test coverage detected