def setUp(self):
     self.ul = userlogin()  # 示例化类loginpage的对象
     self.browser = webdriver.Firefox()
     self.browser.maximize_window()  # 最大化浏览器
     url = self.ul.get_info_from_csv_by_key(
         "../../../../Conf/TestEnvironmentConf.csv", "URL")
     self.browser.get(url)
Example #2
0
 def login_and_click_add_role(self, browser):
     userlogin().user_login_by_merchant(browser)  #默认账号登录
     self.find_element_and_click(browser, self.sys_manage)  #点击系统管理
     self.find_element_and_click(browser, self.role_manage)  #点击用户管理
     self.find_element_and_click(browser, self.add_button)  #点击添加
Example #3
0
 def login_and_click_add_employees(self,browser):
     userlogin().user_login_by_merchant(browser)
     self.find_element_and_click(browser,self.organization_manage)
     self.find_element_and_click(browser,self.employees_manage)
Example #4
0
 def login_and_click_add_position(self, browser):
     userlogin().user_login_by_merchant(browser)
     self.find_element_and_click(browser, self.organization_manage)
     self.find_element_and_click(browser, self.position_manage)
     self.find_element_and_click(browser, self.add_button)
Example #5
0
 def login_and_click_add_perminssions(self, browser):
     userlogin().user_login_by_Administrator(browser)
     self.find_element_and_click(browser, self.sys_manage)  # 点击系统管理
     self.find_element_and_click(browser, self.permissions_manage)  # 点击权限管理
     self.find_element_and_click(browser, self.add_button)  # 点击添加
Example #6
0
 def login_and_click_add_button(self,browser):
     userlogin().user_login_by_Administrator(browser)
     self.find_element_and_click(browser,self.sys_manage)
     self.find_element_and_click(browser,self.button_manage)
     self.find_element_and_click(browser,self.add_button)
Example #7
0
 def login_and_click_add_equipment(self, browser):
     userlogin().user_login_by_merchant(browser)
     self.find_element_and_click(browser, self.equipment_manage)
     self.find_element_and_click(browser, self.equipment_list)
     self.find_element_and_click(browser, self.add_button)
Example #8
0
 def login_and_click_add_department(self, browser):
     userlogin().user_login_by_merchant(browser)
     self.find_element_and_click(browser, self.organization_manage)
     self.find_element_and_click(browser, self.department_manage)
Example #9
0
 def login_and_click_add_merchant(self, browser):
     userlogin().user_login_by_Administrator(browser)
     self.find_element_and_click(browser, self.merchant_manage)
     self.find_element_and_click(browser, self.merchant_info)
     self.find_element_and_click(browser, self.add_button)
Example #10
0
 def login_and_click_add_user(self,browser):
     userlogin().user_login_by_Administrator(browser) #默认账号登录
     self.find_element_and_click(browser, self.sys_manage) #点击系统管理
     self.find_element_and_click(browser, self.user_manage) #点击用户管理
     self.find_element_and_click(browser, self.add_button) #点击添加
 def login_and_click_add_classification(self, browser):
     userlogin().user_login_by_branch(browser)
     self.find_element_and_click(browser, self.goods_manage)
     self.find_element_and_click(browser, self.classification_list)
     self.find_element_and_click(browser, self.add_button)
Example #12
0
 def login_and_click_add_eat(self,browser):
     userlogin().user_login_by_branch(browser)
     self.find_element_and_click(browser,self.goods_manage)
     self.find_element_and_click(browser,self.eat_list)
     self.find_element_and_click(browser,self.add_button)
     sleep(2)