真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

table頁面的處理

#?-*-?coding:utf-8?-*-
#?date?=?2019/11/13
#?name?=?"yedeng"
#?project_name?=?sjkb-ui
#?explain?:?數(shù)據(jù)看板基礎(chǔ)功能

import?os
from?utils.GetelementFromYaml?import?ReadyamlToElement
from?utils.log?import?Log
from?utils.Screenshot?import?Picture
from?testcase_utils.HandleTable?import?Handletable


class?Basis:
????"""
??????看板基礎(chǔ)功能回歸測試
????"""
????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):
????????"""
????????新增自定義看板測試:步驟
????????點(diǎn)擊新增自定義看板按鈕
????????填寫數(shù)據(jù)
????????看板操作,刪除看板
????????:param?boardname:?看板名稱
????????:param?systemname:?看板的系統(tǒng)名稱
????????:param?wide:?看板的寬
????????:param?high:?看板的高
????????:param?boardinfo:?看板的說明信息
????????"""
????????globalsystem?=?self.__kbgl.getelement("gloabesystemname").text??#?當(dāng)前項(xiàng)目名稱
????????self.__kbgl.waitgetelement("createkbbutton").click()
????????#?等待新增自定義看板出現(xiàn)
????????self.__kbgl.waitgetelement("antmodal")
????????Log.info("開始填寫看板屬性")
????????self.__kbgl.getelement("boardname").send_keys(boardname)
????????#?判斷看板的默認(rèn)系統(tǒng)名稱是否是項(xiàng)目名稱
????????kbsystemname?=?self.__kbgl.getelement("systemname")
????????if?kbsystemname.text?!=?globalsystem:
????????????Log.error("默認(rèn)的看板系統(tǒng)名稱不是"?+?globalsystem?+?",請檢查頁面")
????????kbsystemname.clear()
????????#?填寫看板的系統(tǒng)名稱,寬,高,說明
????????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,?"http://tbody[@class='ant-table-tbody']/tr[2]/td[4]/span/span[2]/a",
???????????????????????????????????????????"AI看板",?7,?[True,?1]).click()
????????#?print(Handletable.tablecell(tablethead,?5,?7).text)

分享標(biāo)題:table頁面的處理
URL鏈接:http://weahome.cn/article/jspehg.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部