def edit_postal_recharge_form(self): self.fundPage.edit_first_row_link.click() time.sleep(1) self.tempData = Toolkit.get_random_number(6) self.fundPage.postal_paper_id_txt.clear() self.fundPage.postal_paper_id_txt.send_keys(self.tempData) self.fundPage.confirm_btn.click()
def add_prod_type(self): self.sellerCenterPage.go_to(Uri.ManageProductCategoryPage) self.sellerCenterPage.add_prod_type_btn.click() self.sellerCenterPage.wait_until_clickable(self.sellerCenterPage.confirm_btn_css) self.sellerCenterPage.prod_type_name_txt.send_keys('auto_test') self.sellerCenterPage.prod_type_id_txt.send_keys(Toolkit.get_random_number(4)) self.sellerCenterPage.prod_type_sort_txt.send_keys('1') self.sellerCenterPage.confirm_btn.click()
def edit_delivery_info(self): self.bookOrderPage.go_to(Uri.BookSellerReceivingOrderPage) self.search_order(TestData.TempID) self.bookOrderPage.edit_delivery_info_link.click() time.sleep(1) self.bookOrderPage.delivery_sheet_num_txt.clear() self.bookOrderPage.delivery_sheet_num_txt.send_keys( Toolkit.get_random_number(8)) self.bookOrderPage.edit_delivery_confirm_btn.click()
def fill_postal_recharge_form(self): self.fundPage.go_to(Uri.PostalRechargePage) self.fundPage.add_postal_recharge_btn.click() self.tempData = Toolkit.get_random_number(6) self.fundPage.postal_paper_id_txt.send_keys(self.tempData) self.fundPage.postal_amount_txt.send_keys('0.01') self.fundPage.postal_remark_txt.send_keys('测试用,无需处理!') self.fundPage.postal_confirm_btn.click() self.fundPage.wait_until_clickable(self.fundPage.postal_result_box_css)
def edit_prod_type(self): self.sellerCenterPage.edit_prod_type_link.click() self.sellerCenterPage.wait_until_clickable(self.sellerCenterPage.confirm_btn_css) self.sellerCenterPage.prod_type_name_txt.clear() self.sellerCenterPage.prod_type_name_txt.send_keys('auto_edit') self.sellerCenterPage.prod_type_id_txt.clear() self.sellerCenterPage.prod_type_id_txt.send_keys(Toolkit.get_random_number(4)) self.sellerCenterPage.prod_type_sort_txt.clear() self.sellerCenterPage.prod_type_sort_txt.send_keys('2') self.sellerCenterPage.confirm_btn.click()