diff --git a/android_uia/jd_uia.py b/android_uia/jd_uia.py index 51a1a7e..3da94a7 100644 --- a/android_uia/jd_uia.py +++ b/android_uia/jd_uia.py @@ -56,7 +56,7 @@ class JdClient: # self.dev.implicitly_wait(1) # # print('等待1秒') n = 1 - while n < 50: + while n < 20: self.dev.click(531, 1323) self.dev.screenshot(f'{self.device.replace(":", "_")}_{str(n)}.png') sleep(1) diff --git a/browser_playwright/jd_playwright.py b/browser_playwright/jd_playwright.py index 5b7d37c..da7a211 100644 --- a/browser_playwright/jd_playwright.py +++ b/browser_playwright/jd_playwright.py @@ -44,7 +44,7 @@ def run(_playwright: Playwright) -> None: # 倒计时 jd_timer(target) # 点击领取 - page2.click(".coupon_wrapper") + page2.click(".coupon") target_name = target.replace(':', '-').replace(' ', '_') page2.screenshot(path=f"{target_name}.png") print('点击立即领取!')