增加点击回今日

This commit is contained in:
tqzhang 2024-03-08 16:15:26 +08:00
parent 2bfd39c953
commit 2b9fb1166d
1 changed files with 4 additions and 0 deletions

View File

@ -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]"));