fix: py文件重命名

This commit is contained in:
chenwj 2022-11-23 16:20:49 +08:00
parent 103a28146a
commit 3d2d3fdd2e
1 changed files with 48 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class Chrome(object):
def pls(self, result=[]):
# 点击排列三
_pls = S('//*[@id="vue2_el"]/div/section/div[6]/div[4]/div[3]')
_pls = S('p.lottname.p3')
wait_until(_pls.exists)
click(_pls)
zx = Text('组选')
@ -110,6 +110,53 @@ class Chrome(object):
wait_until(back_2.exists)
click(back_2)
def zuqiu(self):
# 点击竞彩足球
_zq = S('p.lottname.zuqiu')
if not _zq.exists:
wait_until(_zq.exists)
click(_zq)
# 返回主页
back_1 = S('a.backlink')
if not back_1.exists:
wait_until(back_1.exists)
click(back_1)
def lanqiu(self):
# 点击竞彩篮球
_lq = S('p.lottname.lanqiu')
if not _lq.exists:
wait_until(_lq.exists)
click(_lq)
# 返回主页
back_1 = S('a.backlink')
if not back_1.exists:
wait_until(back_1.exists)
click(back_1)
def ren9(self):
# 点击任选9
_ren9 = S('p.lottname.ren9')
if not _ren9.exists:
wait_until(_ren9.exists)
click(_ren9)
# 返回主页
back_1 = S('a.backlink')
if not back_1.exists:
wait_until(back_1.exists)
click(back_1)
def zuqiu14(self):
# 点击十四场
_zq14 = S('p.lottname.zuqiu14')
if not _zq14.exists:
wait_until(_zq14.exists)
click(_zq14)
# 返回主页
back_1 = S('a.backlink')
if not back_1.exists:
wait_until(back_1.exists)
click(back_1)
with Chrome(headless=False) as chrome: