def hoperun_check_mail(hoperun_driver, mail_sender, mail_title):
    wait_for_frame_and_switch_to_frame(hoperun_driver, 'treeBox')
    element = find_element_by_id(hoperun_driver, 'tree_folder_1_span')
    element.click()
    wait_for_page_full_loaded(hoperun_driver)
    wait_for_frame_and_switch_to_frame(hoperun_driver, 'tabsHome')
    wait_for_page_full_loaded(hoperun_driver)
    element = hoperun_driver.find_elements_by_xpath(''.join(('//div[text()="', mail_sender, '"]/../../../..')))
    for e in element:
        if e.find_element_by_xpath('li[2]/div[3]/span').text.__contains__(mail_title):
            e.find_element_by_xpath('li[2]/div[3]/span').click()
def hoperun_check_mail(hoperun_driver, mail_sender, mail_title):
    wait_for_frame_and_switch_to_frame(hoperun_driver, 'treeBox')
    element = find_element_by_id(hoperun_driver, 'tree_folder_1_span')
    element.click()
    wait_for_page_full_loaded(hoperun_driver)
    wait_for_frame_and_switch_to_frame(hoperun_driver, 'tabsHome')
    wait_for_page_full_loaded(hoperun_driver)
    element = hoperun_driver.find_elements_by_xpath(.join(('//div[text()="', mail_sender, '"]/../../../..')))
    for e in element:
        if e.find_element_by_xpath('li[2]/div[3]/span').text.__contains__(mail_title):
            e.find_element_by_xpath('li[2]/div[3]/span').click()