MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / retry_click

Method retry_click

web/regression/feature_utils/pgadmin_page.py:1281–1295  ·  view source on GitHub ↗
(self, click_locator, verify_locator)

Source from the content-addressed store, hash-verified

1279 return status_changed
1280
1281 def retry_click(self, click_locator, verify_locator):
1282 click_status = False
1283 attempt = 0
1284
1285 while click_status is not True and attempt < 10:
1286 try:
1287 element = self.driver.find_element(*click_locator)
1288 element.click()
1289 WebDriverWait(self.driver, 10).until(
1290 EC.visibility_of_element_located(verify_locator))
1291 click_status = True
1292 except Exception as e:
1293 print(e)
1294 attempt += 1
1295 return click_status
1296
1297 def paste_values(self, el=None):
1298 """

Callers 7

_check_file_sortingMethod · 0.80
click_membership_tabMethod · 0.80
initiate_backupMethod · 0.80

Calls

no outgoing calls

Tested by 7

_check_file_sortingMethod · 0.64
click_membership_tabMethod · 0.64
initiate_backupMethod · 0.64