From 2b9fb1166de9a8b21283d90b927964d181091513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E9=A3=8E?= <2452618307@qq.com> Date: Fri, 8 Mar 2024 16:15:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=82=B9=E5=87=BB=E5=9B=9E?= =?UTF-8?q?=E4=BB=8A=E6=97=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/bonus/autoweb/task/AutoWebTask.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/bonus/autoweb/task/AutoWebTask.java b/src/main/java/com/bonus/autoweb/task/AutoWebTask.java index 0ea514f..28c4b9a 100644 --- a/src/main/java/com/bonus/autoweb/task/AutoWebTask.java +++ b/src/main/java/com/bonus/autoweb/task/AutoWebTask.java @@ -156,6 +156,10 @@ public class AutoWebTask { //操作日志 webDriver = autoMain.getWebDriver(); Thread.sleep(3000); + //将日期改为今天的日期 + webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/main/div/div[1]/div[1]/div[3]/div[1]/div[2]/div/button[2]")).click(); + log.info("将日期选择回当日----------"); + Thread.sleep(1000); //获取账号姓名 和 账号名 WebElement personNameEle = webDriver.findElement(By.xpath("//*[@id='pane-1']/div/div[3]/div/div/div[3" + "]/table/tbody/tr[2]/td[2]/div/div/p[1]"));