'@case: hrm004
@description: Import Staff'

def test_hrm004_import_staff(self):

    print '\n'
    import datetime
    from dateutil.relativedelta import relativedelta
    base_dir = os.path.join(os.getcwd(), 'applications', current.request.application)
    file_path = os.path.join(base_dir, 'modules', 'tests', 'staff', 'staff.csv')
    today = datetime.date.today().strftime('%Y-%m-%d')
    now = datetime.datetime.now().strftime('%Y-%m-%d    %H:%M:%S')
    now_1_day = (datetime.datetime.now() + relativedelta(days=(+ 1))).strftime('%Y-%m-%d    %H:%M:%S')
    now_1_week = (datetime.date.today() + relativedelta(weeks=(+ 1))).strftime('%Y-%m-%d    %H:%M:%S')
    self.login(account='admin', nexturl='hrm/person/import?group=staff')
    self.browser.find_element_by_css_selector('input[type="file"]').send_keys(file_path)
    self.browser.find_element_by_css_selector('input[type="submit"]').click()
    self.wait_for_page_to_load()
    self.browser.find_element_by_id('submitSelection').click()
