def locateElement(self, element_name, how, what, operate_method, excel_path, sheet_name_list): located_element = self.find_element(how, what) if operate_method == 'click': self.extendClick(located_element) elif operate_method == 'sendkey': send_data = GetData.GetData().getData(element_name, excel_path, sheet_name_list) self.extendSendData(located_element, send_data)
def locateElements(self, app_object, how, what, operate_method, index, path_excel, name_sheet_list): located_element = self.find_elements(how, what, index) # print located_element # print operate_method if operate_method == 'click': self.extend_click_element(located_element) elif operate_method == 'sendkey': send_data = GetData.GetData().getData(app_object, path_excel, name_sheet_list) self.extend_send_data(located_element, send_data)
def locatedElements(self, locate_how, locate_what, operate_method, excel_path, sheet_name_list, element_name, moreLocate_flag): located_element = self.find_elements(locate_how, locate_what, moreLocate_flag) if operate_method == 'click': self.extend_click_element(located_element) elif operate_method == 'sendkey': send_data = GetData.GetData().getData(element_name, excel_path, sheet_name_list) print send_data self.extend_send_data(located_element, send_data)
def test_wd_all_gnids(self): settings.conn_string = settings.conn_string_test all_gnids = GD.wd_all_gnid(gene_prot='g') print(len(all_gnids))