def click_login(self): login_button = self.driver.find_element_by_css_selector( "button.form-control") UiUtil.click(login_button)
def logout(self): ele = self.driver.find_element_by_xpath('//*[text()="注销"]') UiUtil.click(ele)
def click_login_button(self): login_button_element = UiUtil.find_elment('login', 'login_button') UiUtil.click(login_button_element)
def click_type(self): element = UiUtil.find_elment('save', 'type_click') UiUtil.click(element)
def click_save(self): element = UiUtil.find_elment('save', 'text') UiUtil.click(element) pass
def click_vip(self): ele = self.driver.find_element_by_link_text("会员管理") UiUtil.click(ele)
def vip_query(self): ele = self.driver.find_element_by_xpath( "/html/body/div[4]/div[1]/form[2]/div[2]/button[1]") UiUtil.click(ele)