def count_social_media_imgs_v2(self): elements = Utils.find_elements(self.driver, By.CSS_SELECTOR, '.buttons-w span') count = 0 for x in elements: count = count + 1 return count
def get_warning_msg(self): element = Utils.wait_presence_and_get_element(self.driver, By.CSS_SELECTOR, '.alert-warning') text = None if element is not None: text = element.text return text
def get_remember_me_label_text(self): return Utils.wait_presence_and_get_element(self.driver, By.CSS_SELECTOR, '.form-check-label')
def remember_me_button_is_clickable(self): return Utils.wait_clickable_and_get_element(self.driver, By.CSS_SELECTOR, '.form-check-input')
def get_login_button(self): return Utils.wait_presence_and_get_element(self.driver, By.ID, 'log-in')
def password_img_is_present(self): return Utils.wait_presence_and_get_element( self.driver, By.CSS_SELECTOR, '.form-group:nth-child(2) .pre-icon')
def get_password_box(self): return Utils.wait_presence_and_get_element(self.driver, By.ID, 'password')
def click_amount_header(self): amount_header = Utils.wait_presence_and_get_element(self.driver, By.ID, 'amount') amount_header.click()
def username_img_is_present(self): return Utils.wait_presence_and_get_element(self.driver, By.CSS_SELECTOR, '.form-group .pre-icon')
def get_username_box(self): return Utils.wait_presence_and_get_element(self.driver, By.ID, 'username')
def username_label_is_present(self): element = Utils.wait_presence_and_get_element(self.driver, By.CSS_SELECTOR, '.form-group label') return element.text
def get_title(self, title): element = Utils.wait_presence_and_get_element(self.driver, By.CSS_SELECTOR, '.auth-header') return element.text
def logo_big_img_is_present(self): return Utils.wait_presence_and_get_element(self.driver, By.CSS_SELECTOR, '.logo-w img')
def flash_sale2_is_present(self): return Utils.wait_presence_and_get_element(self.driver, By.CSS_SELECTOR, '#flashSale2 img')
def click_compare_expenses(self): compare_expenses = Utils.wait_clickable_and_get_element(self.driver, By.ID, 'showExpensesChart') compare_expenses.click()
def password_label_is_present(self): element = Utils.wait_presence_and_get_element( self.driver, By.CSS_SELECTOR, '.form-group:nth-child(2)') return element.text
def click_show_next_year_button(self): button = Utils.wait_presence_and_get_element(self.driver, By.ID, 'addDataset') button.click()
def user_is_logged_in(self): return Utils.wait_presence_and_get_element(self.driver, By.CSS_SELECTOR, '.avatar-w')