Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added: def click_element_if_visible(self, element): try: if element.is_displayed() and element.is_enabled(): element.click() logging.info("Dashboard pop-up registered and closed, needs to be done once on new accounts") else: pass except (ElementNotInteractableException, NoSuchElementException): pass def dashboardPopUpModalCloseCross(self): try: element = self.webdriver.find_element(By.CSS_SELECTOR, ".dashboardPopUpPopUpSelectButton") self.click_element_if_visible(element) time.sleep(0.25) except NoSuchElementException: return -goodluck
- Loading branch information