def __init__(self, driver): self.driver = driver self.find = findelement(self.driver) self.newmodel_form_selector = "div#main>div>div#layout-content>div.content-wrap>div.model-main>div.config-main.edit-page" self.basic_info = ">div.model-form-section.basic-info>form" self.process_set = ">div.model-form-section.process-set>form" self.action = ">div.action>form" self.form_xpath = "//div[@id='main']/div/div[@id='layout-content']/div[@class='content-wrap']/div[@class='model-main']/div[@class='config-main edit-page']/div[@class='model-form-section basic-info']"
def __init__(self, driver): self.driver = driver self.find = findelement(self.driver) #工单编辑页面##################################### #工单编辑页面导航栏标题CSS self.ticket_edit_nav_title = "div#main>div>div#layout-content>div.title.rela" #工单编辑页面form css self.ticket_edit_form = "div#main>div>div#layout-content>div.ticket-wrap>div.ticket-edit.ticket-detail>div.detail-form" #操作按钮 self.ticket_operation_btn = ">div.detail-btn>div>div>div>div>div>div>" self.js_confirm_btn = """
def __init__(self, driver): self.driver = driver self.find = findelement(self.driver) self.title = "//div[@id='layout-content']/div[@class='title.rela']" self.body = "//div[@id='layout-content']/div[@class='content-wrap']/div[@class='config-main']/div/div[@class='model-squares']/div/div[@class='ant-spin-container']/div[@class='model-card-wrap']/div[@class='clearfix model-cards']"
def __init__(self, driver): self.driver = driver self.datalist_body_xpath = "//div[@id='main']/div/div[@id='layout-content']/div[@class='content-wrap']/div[@class='ticket-main']/div[@id='ticket-list-wrap']/div/div[@class='ticket-list-mian']/div[@class='ticket-table-wrap']" self.find = findelement(self.driver)
def __init__(self,driver): self.driver = driver self.find = findelement(self.driver)
def __init__(self, driver): self.driver = driver self.create_newticket_form_selector = "//div[@id='main']/div/div[@id='layout-content']/div[not(contains(@class,'title'))]/div[@class='ant-spin-container']/div[@class='ticket-wrap']/div[@class='ticket-detail']/div[@class='detail-form']/form[@id='ticketForm']" self.find = findelement(self.driver)
def __init__(self, driver): self.driver = driver self.find = findelement(self.driver) self.selectapprover_body_selector = "div.ant-modal-wrap>div.ant-modal.mymodelstyle>div.ant-modal-content>div.ant-modal-body>div.choose-modal>div.choose-user>div.user-tabs>div>div.ant-tabs-content" self.approver_window_body_selector = "div.ant-modal-wrap>div.ant-modal.mymodelstyle>div.ant-modal-content>div.ant-modal-body>div.choose-modal"
def __init__(self, driver): self.driver = driver self.showmodel_body_selector = "//div[@class='ant-modal-wrap add-ticket-service-modal']/div[@class='ant-modal']/div[@class='ant-modal-content']/div[@class='ant-modal-body']" self.find = findelement(self.driver)
def __init__(self,driver): self.driver = driver #左边树形菜单 self.left_nav_menu_css = "div#main>div>aside#left-panel>div.panel-wrap>div.panel>nav#nav" self.find = findelement(self.driver)