From 362d2eacbfbc7e061d4d423af77fd3cd235b23e4 Mon Sep 17 00:00:00 2001 From: chenwj113 <654891551@qq.com> Date: Sun, 7 Jan 2024 20:13:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=A1=AE=E8=AE=A4=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- youdian.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/youdian.py b/youdian.py index ba98431..4dbe337 100644 --- a/youdian.py +++ b/youdian.py @@ -194,10 +194,13 @@ class Chrome(object): if not second_next_step.exists: wait_until(second_next_step.exists) click(second_next_step) + checkbox = S('//div[contains(@class, "checkbox")]') + if checkbox.exists: + click(checkbox) confirm = Text("确认") if not confirm.exists: wait_until(confirm.exists) - time.sleep(5) + time.sleep(10) click(confirm) # 后退 back_1 = S('a.backlink') @@ -264,8 +267,8 @@ with Chrome() as chrome: # chrome.balance() # 组选 # result = ['039', '048', '049', '138', '139', '147', '237', '238', '246', '247'] - result = ['258', '256', '156', '247', '067'] - chrome.pls(result = result, multiple=1, save_result=True) + result = ['336', '156', '146', '447', '366'] + chrome.pls(result = result, multiple=1, save_result=False) # 直选 # result = ['246', '264', '291', '219', '169'] # chrome.pls(result=result, is_group=False) \ No newline at end of file