Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Processing of table pages

Shulou Source: shulou.com Published: 2022-06-03 05:27:11 10月04日 Update

#-*-coding:utf-8-*-# date = 2019 def 11Universe name = "yedeng" # project_name = sjkb-ui# explain: data Kanban basic function import osfrom utils.GetelementFromYaml import ReadyamlToElementfrom utils.log import Logfrom utils.Screenshot import Picturefrom testcase_utils.HandleTable import Handletableclass Basis: "Kanban basic function regression test"def _ _ init__ (self)" Driver): self.__driver = driver self.__kbgl = ReadyamlToElement (self.__driver Os.path.dirname (os.getcwd) + os.sep + "yaml" + os.sep + "projectsjkb" + os.sep + "Kbgl.yaml") self.__picture = Picture (self.__driver) def createkb (self, boardname, systemname, wide, high Boardinfo): add Custom Kanban Test: step Click the add Custom Kanban button to fill in the data Kanban operation Delete Kanban: param boardname: Kanban name: param systemname: Kanban system name: param wide: Kanban width: param high: Kanban height: param boardinfo: Kanban description Information "globalsystem = self.__kbgl.getelement (" gloabesystemname "). Text # current project name self.__kbgl .waitgetelement ("createkbbutton") .click () # wait for the new custom Kanban to appear self.__kbgl.waitgetelement ("antmodal") Log.info ("start filling in Kanban properties") self.__kbgl.getelement ("boardname") .send_keys (boardname) # determine whether the default system name of Kanban is the project name kbsystemname = self.__ Kbgl.getelement ("systemname") if kbsystemname.text! = globalsystem: Log.error ("default Kanban system name is not" + globalsystem + " Please check the page ") kbsystemname.clear () # fill in the system name of Kanban Wide, high Explain kbsystemname.send_keys (systemname) self.__kbgl.getelement ("wide"). Send_keys (wide) self.__kbgl.getelement ("high"). Send_keys (high) self.__kbgl.getelement ("boardInfo"). Send_keys (boardinfo) self.__kbgl.getelement ("definebutton"). Click () def table (self): tablethead = self._ _ kbgl.waitgetelement ("kanbantable") # print (Handletable.tablelows (tablethead). _ _ len__ ()) Handletable (self.__driver) .tabless (tablethead "/ / tbody [@ class='ant-table-tbody'] / tr [2] / td [4] / span/span [2] / a", "AI Kanban", 7, [True, 1]) .click () # print (Handletable.tablecell (tablethead, 5,7) .text)

Tags: Kanban name system function Foundation data Project Test Page Information Properties buttons steps utf-8 check process Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Microsoft Apple Docker Shulou Information