def download_orderid_template(self): helper.wait_element_visible(self.driver,*OrderLocator.charge_download_link) order_link = self.driver.find_element(*OrderLocator.charge_download_link) # order_link.click() url = datagen.get_current_dashboard_url()+"/page/download/batch_refund_by_order_id" path = helper.current_path() helper.downloadRemoteFile(url,path+"/chargeid.csv")
def download_batchPay_csv(self): # download_links = self.driver.find_elements(*OrderLocator.blue_download_links) # for link in download_links: # if link.text == "csv": # link.click() url = datagen.get_current_dashboard_url()+"/page/download/batch_transfer_sample_file?type=csv" path = helper.current_path() helper.downloadRemoteFile(url,path+"/batchPay.csv")