'@case: HRM001
@description: Create a Staff from registry
@TestDoc: https://docs.google.com/spreadsheet/ccc?key=0AmB3hMcgB-3idG1XNGhhRG9QWF81dUlKLXpJaFlCMFE
@Test Wiki: http://eden.sahanafoundation.org/wiki/DeveloperGuidelines/Testing'

def test_hrm001_create_staff_registry(self):

    print '\n'
    self.login(account='admin', nexturl='hrm/staff/create')
    try:
        elem = self.browser.find_element_by_xpath("//div[@class='confirmation']")
        elem.click()
        time.sleep(2)
    except:
        pass
    self.browser.find_element_by_id('select_from_registry').click()
    self.create('hrm_human_resource', [('person_id', 'Yakobus    Maia'), ('organisation_id', 'International    Federation    of    Red    Cross    and    Red    Crescent    Societies'), ('site_id', 'AP    Zone    (Office)')])
