<s> """<STR_LIT>""" <EOL> from tests . web2unittest import SeleniumUnitTest <EOL> from tests import * <EOL> class AddStaffToWarehouse ( SeleniumUnitTest ) : <EOL> def test_hrm007_add_staff_to_warehouse ( self ) : <EOL> """<STR_LIT>""" <EOL> browser = self . browser <EOL> config = self . config <EOL> self . login ( account = "<STR_LIT>" , nexturl = "<STR_LIT>" ) <EOL> self . dt_filter ( "<STR_LIT>" ) <EOL> self . dt_action ( ) <EOL> url = browser . current_url <EOL> url_parts = url . split ( "<STR_LIT:/>" ) <EOL> try : <EOL> org_id = int ( url_parts [ - <NUM_LIT:2> ] ) <EOL> except : <EOL> org_id = int ( url_parts [ - <NUM_LIT:1> ] ) <EOL> browser . get ( "<STR_LIT>" % ( config . url , org_id ) ) <EOL> add_btn = self . browser . find_elements_by_id ( "<STR_LIT>" ) <EOL> if len ( add_btn ) > <NUM_LIT:0> : <EOL> add_btn [ <NUM_LIT:0> ] . click ( ) <EOL> select_from_registry_btn = self . browser . find_element_by_id ( "<STR_LIT>" ) <EOL> select_from_registry_btn . click ( ) <EOL> self . create ( "<STR_LIT>" , <EOL> [ <EOL> ( "<STR_LIT>" , <EOL> "<STR_LIT>" ) <EOL> ] <EOL> ) </s>
