MCPcopy
hub / github.com/reflex-dev/reflex / has_error_modal

Function has_error_modal

tests/integration/test_connection_banner.py:137–151  ·  view source on GitHub ↗

Check if the connection error modal is displayed. Args: driver: Selenium webdriver instance. Returns: True if the modal is displayed, False otherwise.

(driver: WebDriver)

Source from the content-addressed store, hash-verified

135
136
137def 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
154def has_cloud_banner(driver: WebDriver) -> bool:

Callers 1

test_connection_bannerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected