def assert_window_popup_modal_title(driver):
    window_popup_menu_name = driver.find_element_by_xpath(
        configRead.locatorRead("Alerts",
                               "window_popup_modal_SubMenu_xpath")).text
    window_popup_menu_name = window_popup_menu_name.strip()
    assert window_popup_menu_name == configRead.locatorRead(
        "Alerts", "window_popup_modal_SubMenu_name")
Ejemplo n.º 2
0
 def select_date_picker_menu(self):
     wait.until(
         EC.presence_of_element_located(
             (By.XPATH,
              configRead.locatorRead('Date',
                                     'Dpicker_menu_xpath')))).click()
     time.sleep(3)
 def switch_to_facebook_window(self):
     windows = page_actions.get_all_open_windows(driver)
     abc = driver.current_window_handle
     for win in windows:
         driver.switch_to.window(win)
         if str(driver.current_url) == str(
                 configRead.locatorRead("Alerts_window_popup_modal",
                                        "Facebook_url")):
             alerts_n_modals_Assersions.assert_facebook_title(driver)
     driver.switch_to.window(abc)
     driver.close()
def click_button(driver,section,key):
    driver.find_element_by_xpath(configRead.locatorRead(section,key)).click()
def add_wait_for_element(driver,wait,section,key):
    wait.until(EC.presence_of_element_located((By.XPATH,configRead.locatorRead(section,key))))
def click_button_with_Wait(driver,wait,section,key):
    wait.until(EC.presence_of_element_located((By.XPATH,configRead.locatorRead(section,key))))
    driver.find_element_by_xpath(configRead.locatorRead(section,key)).click()
Ejemplo n.º 7
0
 def select_bootstap_menu(self):
     driver.find_element_by_xpath(
         configRead.locatorRead('Date', 'BDPicker_submenu_xpath')).click()
     time.sleep(10)
def assert_alerts_menu_title(driver):
    alert_menu_name = driver.find_element_by_xpath(
        configRead.locatorRead("Alerts", "alerts_modal_Menu_xpath")).text
    alert_menu_name = alert_menu_name.strip()
    assert alert_menu_name == configRead.locatorRead("Alerts",
                                                     "alert_menu_name")
def assert_facebook_title(driver):
    win_title = driver.title
    assert win_title == configRead.locatorRead("Alerts_window_popup_modal",
                                               "Facebook_title")