def add_resource(self, base_config_path, add_resource_data): driver = self.driver Service.miss_login(driver, base_config_path) self.tranin() self.new_button() self.input_name(add_resource_data['name']) self.input_tel(add_resource_data['phone']) self.select_new_status() self.select_channel() self.select_save()
def claim_resource(self, base_config_path): driver = self.driver Service.miss_login(driver, base_config_path) self.decode() self.resource_management() self.click_common() self.click_claim_query_button() self.click_claim_info() self.click_claim_button() self.click_sure_claim() time.sleep(3)
def look_resume(self, base_config_path): driver = self.driver Service.miss_login(driver, base_config_path) self.decode() self.resource_management() time.sleep(2) self.transfer() time.sleep(2) self.click_look_query() self.click_look_button() time.sleep(3)
def abandon_resource(self, base_config_path): driver = self.driver Service.miss_login(driver, base_config_path) self.decode() self.resource_management() self.tranin() self.click_abandon_query() self.select_abandon_info() self.click_abandon_button() self.click_sure_abandon() time.sleep(3)
def query_resource(self, base_config_path, query_resource_data): driver = self.driver Service.miss_login(driver, base_config_path) self.tranin() self.resource_store() self.select_status() self.select_region() self.select_department() self.select_consultant() self.select_begin(query_resource_data['stime']) self.select_end(query_resource_data['etime']) self.select_name(query_resource_data['name']) self.select_search()
def transfer_query(self, base_config_path, transfer_query_data): driver = self.driver Service.miss_login(driver, base_config_path) self.decode() self.resource_management() time.sleep(3) self.transfer() self.select_transfer_region() self.select_dept() self.select_emp() self.select_transfer_source() self.input_transfer_info(transfer_query_data['info']) self.click_transfer_query_button() time.sleep(5)
def common_query(self, base_config_path, common_query_data): driver = self.driver Service.miss_login(driver, base_config_path) self.decode() self.resource_management() self.click_common() self.select_common_region() self.select_common_department() self.select_common_emp() self.select_common_status() self.select_common_source() self.select_common_education() self.input_common_info(common_query_data['info']) self.click_common_search_button() time.sleep(3)
def turn_resource(self, base_config_path): driver = self.driver Service.miss_login(driver, base_config_path) self.decode() self.resource_management() time.sleep(2) self.transfer() time.sleep(2) self.click_turn_query_button() self.select_info() self.select_turn_region() self.select_turn_dept() self.select_turn_emp() self.click_commit() self.click_sure_button() time.sleep(3)