(self, click_locator, verify_locator)
| 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 | """ |
no outgoing calls