diff --git a/pom.xml b/pom.xml index f443f27..e82bdec 100644 --- a/pom.xml +++ b/pom.xml @@ -84,6 +84,11 @@ poi 4.1.2 + + cn.hutool + hutool-all + 4.6.6 + org.apache.poi poi-ooxml diff --git a/src/main/java/com/bonus/autoweb/GetBasicData.java b/src/main/java/com/bonus/autoweb/GetBasicData.java index c1e108b..3a85234 100644 --- a/src/main/java/com/bonus/autoweb/GetBasicData.java +++ b/src/main/java/com/bonus/autoweb/GetBasicData.java @@ -2,24 +2,26 @@ package com.bonus.autoweb; import com.bonus.autoweb.UI.entity.DailyBean; import com.bonus.autoweb.UI.entity.LogBean; -import com.bonus.autoweb.UI.frame.StringHelper; -import com.bonus.autoweb.base.AutoMain; -import com.bonus.autoweb.base.AutoUtils; +import com.bonus.autoweb.UI.entity.WeatherData; import com.bonus.autoweb.base.DataConfig; +import com.google.gson.Gson; import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.io.json.JettisonMappedXmlDriver; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.Response; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import javax.activation.DataHandler; import java.io.*; import java.nio.charset.Charset; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; +import java.util.concurrent.TimeUnit; import static java.lang.Integer.parseInt; @@ -72,7 +74,7 @@ public class GetBasicData { * @author tqzhang * @data 2024/01/16 */ - public static void getYuJingActionBasicData(int classes) throws ParseException, InterruptedException { + public void getYuJingActionBasicData(int classes) throws ParseException, InterruptedException { Thread.sleep(5000); // webDriver.findElement(By.xpath("//*[@id=\"app\"]/section/header/form/div/div[2]/button[1]")).click(); // Thread.sleep(300); @@ -379,7 +381,7 @@ public class GetBasicData { log.info("天气预警日报更新完成"); } - public void getCaoLianBasicData(int classes) throws InterruptedException, ParseException { + public void getCaoLianBasicData(int classes) throws InterruptedException, ParseException, IOException { Thread.sleep(5000); DailyBean dailyBean = readDailyBean("morning_daily"); DailyBean dailyBean2 = readDailyBean("evening_daily"); @@ -391,6 +393,51 @@ public class GetBasicData { String[] logContentArrayArray = logContent.split("--头部不可修改--"); String[] checkContentArrayArray = checkContent.split("资源核查情况:"); log.info("读取本地模板数据成功"); + + + OkHttpClient client = new OkHttpClient().newBuilder() + .connectTimeout(180, TimeUnit.SECONDS) + .readTimeout(180, TimeUnit.SECONDS) + .writeTimeout(180, TimeUnit.SECONDS) + .build(); + + String dataUrl = DataConfig.weatherUrl; + log.info("dataUrl:" + dataUrl); + Request request = new Request.Builder() + .url(dataUrl) + .get() + .build(); + Response response; + String result; + String city; + String weatherNoon; + String weatherNight; + String minTemperature; + String maxTemperature; + try { + response = client.newCall(request).execute(); + log.info("response:" + response); + result = response.body().string(); + log.info("result:" + result); + Gson gson = new Gson(); + WeatherData weatherData = gson.fromJson(result, WeatherData.class); + log.info("------weatherData:" + weatherData); + WeatherData.WeatherDataChild weatherDataChild = weatherData.getData(); + log.info("------weatherDataChild:" + weatherDataChild); + city = weatherDataChild.getCity(); + log.info("city:" + city); + weatherNoon = weatherDataChild.getWeatherNoon(); + log.info("weatherNoon:" + weatherNoon); + weatherNight = weatherDataChild.getWeatherNight(); + log.info("weatherNight:" + weatherNight); + minTemperature = weatherDataChild.getMinTemperature(); + log.info("minTemperature:" + minTemperature); + maxTemperature = weatherDataChild.getMaxTemperature(); + log.info("maxTemperature:" + maxTemperature); + } catch (IOException e) { + throw new IOException("天气get请求失败", e); + } + //昨天的日期 String data1 = DateTimeUtils.getLastDay(); log.info("昨天的日期:" + data1); @@ -598,6 +645,11 @@ public class GetBasicData { logBean.setDaily_submission_content(logData + logContentArrayArray[17]); logBean.setGeneral_chronicles_title(logContentArrayArray[22]); logBean.setGeneral_chronicles_content(logContentArrayArray[23]); + + logBean.setWeather(weatherNight); + logBean.setMax_temperature(maxTemperature); + logBean.setMin_temperature(minTemperature); + insertData(null, logBean, "log"); log.info("日志数据更新完成"); log.info("日报数据:" + dailyBean); @@ -659,6 +711,11 @@ public class GetBasicData { logBean.setDaily_submission_content(logData + logContentArrayArray[17]); logBean.setGeneral_chronicles_title(logContentArrayArray[22]); logBean.setGeneral_chronicles_content(logContentArrayArray[23]); + + logBean.setWeather(weatherNight); + logBean.setMax_temperature(maxTemperature); + logBean.setMin_temperature(minTemperature); + insertData(null, logBean, "log"); } } @@ -1240,21 +1297,22 @@ public class GetBasicData { webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/section/header/form/div/div[5]/div/div[2]")).click(); Thread.sleep(3000); if("通信测试".equals(type)){ - webDriver.findElement(By.xpath("/html/body/div[7]/div/div[2]/section/section/main/div/div[3]/table/tbody" + - "/tr[1]")).click(); + webDriver.findElement(By.xpath("/html/body/div[7]/div/div[2]/section/main/div[1]/div[3]/table/tbody" + + "/tr[1]/td[1]/div/label")).click(); Thread.sleep(500); - webDriver.findElement(By.xpath("/html/body/div[7]/div/div[2]/section/section/main/div/div[3]/table/tbody" + - "/tr[2]")).click(); - Thread.sleep(1000); + webDriver.findElement(By.xpath("/html/body/div[7]/div/div[2]/section/main/div[1]/div[3]/table/tbody" + + "/tr[2]/td[1]/div/label")).click(); + Thread.sleep(3000); + webDriver.findElement(By.xpath("/html/body/div[7]/div/div[2]/section/footer/button[2]")).click(); }else { for (int i = 1; i < 3; i++) { - webDriver.findElement(By.xpath("/html/body/div[7]/div/div[2]/section/section/main/div/div[3]/table" + - "/tbody/tr["+i+"]")).click(); + webDriver.findElement(By.xpath("/html/body/div[7]/div/div[2]/section/main/div[1]/div[3]/table" + + "/tbody/tr["+i+"]/td[1]/div/label")).click(); Thread.sleep(1000); } + Thread.sleep(3000); + webDriver.findElement(By.xpath("/html/body/div[7]/div/div[2]/section/footer[2]/button[2]")).click(); } - Thread.sleep(3000); - webDriver.findElement(By.xpath("/html/body/div[7]/div/div[2]/section/footer/button[2]")).click(); Thread.sleep(2000); //提交 webDriver.findElement(By.xpath("/html/body/div[2]/div/div[2]/section/div/button[3]")).click(); diff --git a/src/main/java/com/bonus/autoweb/TestMain.java b/src/main/java/com/bonus/autoweb/TestMain.java index b815d92..a417804 100644 --- a/src/main/java/com/bonus/autoweb/TestMain.java +++ b/src/main/java/com/bonus/autoweb/TestMain.java @@ -97,17 +97,18 @@ public class TestMain { // 应急值班账号 String emergencyPerson = content.toString().split(";")[0].split(":")[1]; String emergencyPersonPassword = content.toString().split(";")[1].split(":")[1]; + Thread.sleep(2000); // autoWebTask.addExercisePlan("通信测试", "", 1, emergencyPerson, // emergencyPersonPassword); -// Thread.sleep(5000); -// autoWebTask.addExercisePlan("日常操练", "", 1, emergencyPerson, -// emergencyPersonPassword); -// Thread.sleep(5000); -// autoWebTask.addExercisePlan("日常操练", "", 2, emergencyPerson, -// emergencyPersonPassword); -// Thread.sleep(5000); + autoWebTask.addExercisePlan("日常操练", "", 1, emergencyPerson, + emergencyPersonPassword); + Thread.sleep(1000); autoWebTask.addExercisePlan("日常操练", "", 2, emergencyPerson, emergencyPersonPassword); + Thread.sleep(1000); + autoWebTask.addExercisePlan("日常操练", "", 3, emergencyPerson, + emergencyPersonPassword); + Thread.sleep(2000); // autoWebTask.addExercisePlan("日常操练", "", 0, emergencyPerson, emergencyPersonPassword); // Thread.sleep(2000); } @@ -229,7 +230,7 @@ public class TestMain { String yesterdaySignOutPerson = yesterdayContent.toString().split(";")[0].split(":")[1]; String yesterdaySignOutPersonPassword = yesterdayContent.toString().split(";")[1].split(":")[1]; - if(DateTimeUtils.isEffectiveDate("17:26", "17:55")){ + if(DateTimeUtils.isEffectiveDate("17:35", "17:55")){ //进行日报信息系统采集及获取工作 try { if (logGatherCount == 0){ @@ -252,10 +253,10 @@ public class TestMain { } catch (IOException e) { log.error("更新早上打卡人员", e); } - }else if (DateTimeUtils.isEffectiveDate("06:00", "06:15")) { + }else if (DateTimeUtils.isEffectiveDate("06:29", "06:59")) { //自动完成当值值班日报(早报)填写上报 if (dailyzao == 0) { - getTime(600); + getTime(1000); try { dailyzao = autoWebTask.dutyAddDailyLogsTask(1,emergencyPerson,emergencyPersonPassword); @@ -264,10 +265,10 @@ public class TestMain { log.error("日报工作", e); } } - }else if (DateTimeUtils.isEffectiveDate("06:16", "06:30")) { + }else if (DateTimeUtils.isEffectiveDate("06:16", "06:28")) { //完成值班日志填写提交(晚班日志,此次值班日志为总结前一天晚上的情况) if (logzao == 0) { - getTime(600); + getTime(500); try { logzao = autoWebTask.dutyAddLogsTask(1,emergencyPerson,emergencyPersonPassword); }catch (Exception e){ @@ -287,8 +288,6 @@ public class TestMain { //使用应急值班账号签到 try { signInzao = autoWebTask.dutySigin(1, 1, emergencyPerson, emergencyPersonPassword); - - } catch (Exception e) { log.error("应急值班打卡任务", e); } @@ -363,25 +362,33 @@ public class TestMain { // int index = random.nextInt(array.length); // log.info("随机值为:" + index); // log.info("随机值为:" + array[index]); - Thread.sleep(2000); - addExercisePlan = autoWebTask.addExercisePlan("通信测试", "", 1, emergencyPerson, - emergencyPersonPassword); - Thread.sleep(1000 * 700); - addExercisePlan = autoWebTask.addExercisePlan("日常操练", "", 1, emergencyPerson, - emergencyPersonPassword); - Thread.sleep(1000 * 700); - addExercisePlan = autoWebTask.addExercisePlan("日常操练", "", 2, emergencyPerson, - emergencyPersonPassword); - Thread.sleep(1000 * 700); - addExercisePlan = autoWebTask.addExercisePlan("日常操练", "", 3, emergencyPerson, - emergencyPersonPassword); - Thread.sleep(2000); + try { + Thread.sleep(2000); + addExercisePlan = autoWebTask.addExercisePlan("通信测试", "", 1, emergencyPerson, + emergencyPersonPassword); + Thread.sleep(1000 * 700); + addExercisePlan = autoWebTask.addExercisePlan("日常操练", "", 1, emergencyPerson, + emergencyPersonPassword); + Thread.sleep(1000 * 700); + addExercisePlan = autoWebTask.addExercisePlan("日常操练", "", 2, emergencyPerson, + emergencyPersonPassword); + Thread.sleep(1000 * 700); + addExercisePlan = autoWebTask.addExercisePlan("日常操练", "", 3, emergencyPerson, + emergencyPersonPassword); + Thread.sleep(2000); + }catch (Exception e){ + log.error("操练", e); + } } }else if (DateTimeUtils.isEffectiveDate("10:30", "10:35")) { - autoWebTask.changeTodayPersonaTask(1,emergencyPerson,emergencyPersonPassword); - // TODO 更新昨日签退人员账号 - String value = GetBasicData.resolveGarbledCode("E:\\bns\\config\\今日值班账号.txt"); - AutoUtils.write("E:\\bns\\config\\昨日值班账号.txt", value.replace("今日","昨日")); + try { + autoWebTask.changeTodayPersonaTask(1,emergencyPerson,emergencyPersonPassword); + // TODO 更新昨日签退人员账号 + String value = GetBasicData.resolveGarbledCode("E:\\bns\\config\\今日值班账号.txt"); + AutoUtils.write("E:\\bns\\config\\昨日值班账号.txt", value.replace("今日","昨日")); + }catch (Exception e){ + log.error("更新昨日签退人员账号", e); + } }else if (DateTimeUtils.isEffectiveDate("12:30", "14:30")) { //进行日志信息系统采集及获取工作 try { @@ -396,7 +403,7 @@ public class TestMain { }catch (Exception e) { log.error("信息采集工作", e); } - }else if (DateTimeUtils.isEffectiveDate("16:50", "17:20")) { + }else if (DateTimeUtils.isEffectiveDate("17:01", "17:29")) { //自动完成当值值班日报(晚报)填写上报 if (dailywan == 0) { getTime(1200); diff --git a/src/main/java/com/bonus/autoweb/UI/entity/WeatherData.java b/src/main/java/com/bonus/autoweb/UI/entity/WeatherData.java new file mode 100644 index 0000000..ecb6bc5 --- /dev/null +++ b/src/main/java/com/bonus/autoweb/UI/entity/WeatherData.java @@ -0,0 +1,117 @@ +package com.bonus.autoweb.UI.entity; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; + +/** + * FileName: WeatherData + * + * @author tqzhang + * Date: 2024/4/9 14:11 + * Description:天气 + */ +@Data +public class WeatherData { + private int code; + private WeatherDataChild data; + + public static class WeatherDataChild { + private int page; + private int rows; + private String city; + @SerializedName("weather12") // 使用注解指定 JSON 中的字段名 + private String weatherNoon; + @SerializedName("weather24") // 使用注解指定 JSON 中的字段名 + private String weatherNight; + @SerializedName("temperature1") // 使用注解指定 JSON 中的字段名 + private String minTemperature; + @SerializedName("temperature2") // 使用注解指定 JSON 中的字段名 + private String maxTemperature; + private String rectime; + + public int getPage() { + return page; + } + + public void setPage(int page) { + this.page = page; + } + + public int getRows() { + return rows; + } + + public void setRows(int rows) { + this.rows = rows; + } + + public String getCity() { + return city; + } + + public void setCity(String city) { + this.city = city; + } + + public String getWeatherNoon() { + return weatherNoon; + } + + public void setWeatherNoon(String weatherNoon) { + this.weatherNoon = weatherNoon; + } + + public String getWeatherNight() { + return weatherNight; + } + + public void setWeatherNight(String weatherNight) { + this.weatherNight = weatherNight; + } + + public String getMinTemperature() { + return minTemperature; + } + + public void setMinTemperature(String minTemperature) { + this.minTemperature = minTemperature; + } + + public String getMaxTemperature() { + return maxTemperature; + } + + public void setMaxTemperature(String maxTemperature) { + this.maxTemperature = maxTemperature; + } + + public String getRectime() { + return rectime; + } + + public void setRectime(String rectime) { + this.rectime = rectime; + } + + @Override + public String toString() { + return "WeatherDataChild{" + + "page=" + page + + ", rows=" + rows + + ", city='" + city + '\'' + + ", weatherNoon='" + weatherNoon + '\'' + + ", weatherNight='" + weatherNight + '\'' + + ", minTemperature='" + minTemperature + '\'' + + ", maxTemperature='" + maxTemperature + '\'' + + ", rectime='" + rectime + '\'' + + '}'; + } + } + @Override + public String toString() { + return "WeatherData{" + + "code=" + code + + ", data=" + data + + '}'; + } +} diff --git a/src/main/java/com/bonus/autoweb/base/AutoMain.java b/src/main/java/com/bonus/autoweb/base/AutoMain.java index f9422b9..24066b2 100644 --- a/src/main/java/com/bonus/autoweb/base/AutoMain.java +++ b/src/main/java/com/bonus/autoweb/base/AutoMain.java @@ -155,7 +155,8 @@ public class AutoMain { Thread.sleep(5000); //执行鼠标悬停动作-管理 Actions action = new Actions(webDriver); - WebElement wegl = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/div[1]/div[5]/div/div/div[6]/span/span/div")); + WebElement wegl = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/div[1]/div[6]/div/div/div[6]/span/span" + + "/div")); action.moveToElement(wegl).build().perform(); Thread.sleep(300); @@ -200,7 +201,8 @@ public class AutoMain { Thread.sleep(5000); //执行鼠标悬停动作-管理 Actions action = new Actions(webDriver); - WebElement wegl = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/div[1]/div[5]/div/div/div[2]/span/span/div")); + WebElement wegl = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/div[1]/div[6]/div/div/div[2]/span/span" + + "/div")); action.moveToElement(wegl).build().perform(); Thread.sleep(300); log.info("执行鼠标悬停动作-管理"); @@ -239,7 +241,8 @@ public class AutoMain { Thread.sleep(5000); //执行鼠标悬停动作-管理 Actions action = new Actions(webDriver); - WebElement wegl = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/div[1]/div[5]/div/div/div[2]/span/span/div")); + WebElement wegl = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/div[1]/div[6]/div/div/div[2]/span/span" + + "/div")); action.moveToElement(wegl).build().perform(); Thread.sleep(300); log.info("执行鼠标悬停动作-管理"); @@ -282,7 +285,8 @@ public class AutoMain { Thread.sleep(3000); //执行鼠标悬停动作-管理 Actions action = new Actions(webDriver); - WebElement wegl = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/div[1]/div[5]/div/div/div[6]/span/span/div")); + WebElement wegl = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/div[1]/div[6]/div/div/div[6]/span" + + "/span/div")); action.moveToElement(wegl).build().perform(); Thread.sleep(300); @@ -341,7 +345,8 @@ public class AutoMain { Thread.sleep(5000); //执行鼠标悬停动作-管理 Actions action = new Actions(webDriver); - WebElement wegl = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/div[1]/div[5]/div/div/div[6]/span/span/div")); + WebElement wegl = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/div[1]/div[6]/div/div/div[6]/span/span" + + "/div")); action.moveToElement(wegl).build().perform(); Thread.sleep(300); diff --git a/src/main/java/com/bonus/autoweb/base/DataConfig.java b/src/main/java/com/bonus/autoweb/base/DataConfig.java index 2125da5..c4abe10 100644 --- a/src/main/java/com/bonus/autoweb/base/DataConfig.java +++ b/src/main/java/com/bonus/autoweb/base/DataConfig.java @@ -1,5 +1,7 @@ package com.bonus.autoweb.base; +import com.bonus.autoweb.DateTimeUtils; + public class DataConfig { /** * url 网站地址 @@ -58,5 +60,6 @@ public class DataConfig { public static final String filePath = "E:\\bns\\config"; - + public static final String weatherUrl = "http://10.138.4.27:9021/EPCIM/control/ypdgt/qxyj/getQXYJ?city=蒙城&rectime" + + "="+ DateTimeUtils.getCurrentDay(); } diff --git a/src/main/java/com/bonus/autoweb/base/DutyDailyCheck.java b/src/main/java/com/bonus/autoweb/base/DutyDailyCheck.java index 3670fb1..1caa89e 100644 --- a/src/main/java/com/bonus/autoweb/base/DutyDailyCheck.java +++ b/src/main/java/com/bonus/autoweb/base/DutyDailyCheck.java @@ -68,7 +68,8 @@ public class DutyDailyCheck { //同意审核按钮点击 - WebElement tyCheckBtn=webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[19]/button[4]")); + WebElement tyCheckBtn=webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16" + + "]/button[4]")); if(tyCheckBtn.isDisplayed()){ //存在 log.info("同意审核按钮存在-----------"); diff --git a/src/main/java/com/bonus/autoweb/base/DutyDailyOp.java b/src/main/java/com/bonus/autoweb/base/DutyDailyOp.java index 528fc8e..9d59f2d 100644 --- a/src/main/java/com/bonus/autoweb/base/DutyDailyOp.java +++ b/src/main/java/com/bonus/autoweb/base/DutyDailyOp.java @@ -181,13 +181,18 @@ public class DutyDailyOp { log.info("供电保障情况2填写-----------"); Thread.sleep(1000); - //供电保障情况3 - String gdbzqk3 = bean.getPower_guarantee_today_pestilence(); - WebElement gdbzqk3Ele = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/form/div[5]/div[4]/div/div/div/div/div/textarea")); - gdbzqk3Ele.clear(); - gdbzqk3Ele.sendKeys(gdbzqk3); - log.info("供电保障情况3填写-----------"); - Thread.sleep(1000); + try { + //供电保障情况3 + String gdbzqk3 = bean.getPower_guarantee_today_pestilence(); + WebElement gdbzqk3Ele = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/form" + + "/div[5]/div[4]/div/div/div/div/div[1]/textarea")); + gdbzqk3Ele.clear(); + gdbzqk3Ele.sendKeys(gdbzqk3); + log.info("供电保障情况3填写-----------"); + Thread.sleep(1000); + }catch (Exception e) { + log.info("填写供电保障情况4不存在此元素----------"); + } //预警及应急响应情况1 String yjjyjxy1 = bean.getWarning_company(); @@ -253,18 +258,10 @@ public class DutyDailyOp { // webDriver.findElement(By.xpath(operaxpath)).click(); // log.info("选择操作内容----------"); // Thread.sleep(300); - String exerciseContent = "物资种类齐全,储存充足,维护保养到位,协议库存管理规范,物资展示效果良好,未发现其他问题.队伍精神面貌良好,着装,装备齐备,集结迅速,未发现问题.车辆维护保养到位," + - "运行良好,现场展示效果良好,未发现问题"; - String videoContent = "能迅速将现场视频传输至应急指挥中心,相应设备视频正常在线,现场视频清晰,无卡顿.应急指挥中心能够熟练将i国网,智慧应急app视频连线画面进行回传,现场基本资料齐全," + - "现场防汛," + - "消防," + - "保卫工作按要求开闸"; + try { - WebElement codeEle = webDriver.findElement(By.xpath("/html/body/div/div/section/div/div[4]/div[1]/div[1" + - "]/div" + - "[2]/div/div/div[3]/table/tbody/tr[1]/td[3]/div")); WebElement personNumEle = webDriver.findElement(By.xpath("/html/body/div/div/section/div/div[4]/div[1]/div[1]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[7]/div/div/input")); - personNumEle.sendKeys("通信测试".equals(codeEle.getText()) ? videoContent:exerciseContent); + personNumEle.sendKeys("无问题"); log.info("填写通信测试问题----------"); Thread.sleep(300); }catch (Exception e) { @@ -272,11 +269,8 @@ public class DutyDailyOp { } Thread.sleep(500); try { - WebElement codeEle1 = webDriver.findElement(By.xpath("/html/body/div/div/section/div/div[4]/div[1]/div[1" + - "]/div" + - "[2]/div/div/div[3]/table/tbody/tr[2]/td[3]/div")); WebElement carNumEle = webDriver.findElement(By.xpath("//html/body/div/div/section/div/div[4]/div[1]/div[1]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[7]/div/div/input")); - carNumEle.sendKeys("通信测试".equals(codeEle1.getText()) ? videoContent:exerciseContent); + carNumEle.sendKeys("无问题"); log.info("填写四要素操练问题----------"); Thread.sleep(300); }catch (Exception e) { @@ -284,11 +278,8 @@ public class DutyDailyOp { } Thread.sleep(500); try { - WebElement codeEle2 = webDriver.findElement(By.xpath("/html/body/div/div/section/div/div[4]/div[1]/div[1" + - "]/div" + - "[2]/div/div/div[3]/table/tbody/tr[3]/td[3]/div")); WebElement fdcNumEle = webDriver.findElement(By.xpath("//html/body/div/div/section/div/div[4]/div[1]/div[1]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[7]/div/div/input")); - fdcNumEle.sendKeys("通信测试".equals(codeEle2.getText()) ? videoContent:exerciseContent); + fdcNumEle.sendKeys("无问题"); log.info("填写重大战线视频连线检查问题----------"); Thread.sleep(1000); }catch (Exception e) { @@ -383,397 +374,442 @@ public class DutyDailyOp { bzEle.sendKeys(bz); log.info("填写备注----------"); Thread.sleep(300); - dailySchedule3(bean.getThreeBean(), bean); - } - - //操作附表3 - private void dailySchedule3(AnnexThreeBean obj, DailyBean bean) throws InterruptedException { -// //填写合计-新增-确诊 -// String totalAddDiagnosedNum = obj.getTotalAddDiagnosed(); -// WebElement totalAddDiagnosedEle= webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/input")); -// totalAddDiagnosedEle.clear(); -// totalAddDiagnosedEle.sendKeys(totalAddDiagnosedNum); -// log.info("填写合计-新增-确诊----------"); -// Thread.sleep(300); -// -// //填写合计-现有-确诊 -// String totalExistingDiagnosedNum = obj.getTotalExistingDiagnosed(); -// WebElement totalExistingDiagnosedNumEle= webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/input")); -// totalExistingDiagnosedNumEle.clear(); -// totalExistingDiagnosedNumEle.sendKeys(totalExistingDiagnosedNum); -// log.info("填写合计-现有-确诊----------"); -// Thread.sleep(300); - - //填写电网调度-新增-确诊 - String dispatchAddDiagnosedNum = obj.getDispatchAddDiagnosed(); - WebElement dispatchAddDiagnosedNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[6]/div/div/div/input")); - dispatchAddDiagnosedNumEle.clear(); - dispatchAddDiagnosedNumEle.sendKeys(dispatchAddDiagnosedNum); - log.info("填写电网调度-新增-确诊----------"); - Thread.sleep(300); - - - //填写电网调度-现有-确诊 - String dispatchExistingDiagnosedNum = obj.getDispatchExistingDiagnosed(); - WebElement dispatchExistingDiagnosedNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[7]/div/div/div/input")); - dispatchExistingDiagnosedNumEle.clear(); - dispatchExistingDiagnosedNumEle.sendKeys(dispatchExistingDiagnosedNum); - log.info("填写电网调度-现有-确诊----------"); - Thread.sleep(300); - - - //填写运维检修-新增-确诊 - String repairAddDiagnosedNum = obj.getRepairAddDiagnosed(); - WebElement repairAddDiagnosedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[8]/div/div/div/input")); - repairAddDiagnosedEle.clear(); - repairAddDiagnosedEle.sendKeys(repairAddDiagnosedNum); - log.info("填写运维检修-新增-确诊----------"); - - //填写运维检修-现有-确诊 - String repairExistingDiagnosedNum = obj.getRepairExistingDiagnosed(); - WebElement repairExistingDiagnosedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[9]/div/div/div/input")); - repairExistingDiagnosedEle.clear(); - repairExistingDiagnosedEle.sendKeys(repairExistingDiagnosedNum); - log.info("填写运维检修-现有-确诊----------"); - - //填写营销服务-新增-确诊 - String marketingAddDiagnosedNum = obj.getMarketingAddDiagnosed(); - WebElement marketingAddDiagnosedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[10]/div/div/div/input")); - marketingAddDiagnosedEle.clear(); - marketingAddDiagnosedEle.sendKeys(marketingAddDiagnosedNum); - log.info("填写营销服务-新增-确诊----------"); - - //填写营销服务-现有-确诊 - String marketingExistingDiagnosedNum = obj.getMarketingExistingDiagnosed(); - WebElement marketingExistingDiagnosedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[11]/div/div/div/input")); - marketingExistingDiagnosedEle.clear(); - marketingExistingDiagnosedEle.sendKeys(marketingExistingDiagnosedNum); - log.info("填写营销服务-现有-确诊----------"); - - //填写电网建设-新增-确诊 - String constructionAddDiagnosedNum = obj.getConstructionAddDiagnosed(); - WebElement constructionAddDiagnosedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[12]/div/div/div/input")); - constructionAddDiagnosedEle.clear(); - constructionAddDiagnosedEle.sendKeys(constructionAddDiagnosedNum); - log.info("填写营销服务-新增-确诊----------"); - - //填写电网建设-现有-确诊 - String constructionExistingDiagnosedNum = obj.getConstructionExistingDiagnosed(); - WebElement constructionExistingDiagnosedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[13]/div/div/div/input")); - constructionExistingDiagnosedEle.clear(); - constructionExistingDiagnosedEle.sendKeys(constructionExistingDiagnosedNum); - log.info("填写营销服务-现有-确诊----------"); - -// //填写合计-新增-治愈 -// String totalAddHealNum = obj.getTotalAddHeal(); -// WebElement totalAddHealEle= webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/input")); -// totalAddHealEle.clear(); -// totalAddHealEle.sendKeys(totalAddHealNum); -// log.info("填写合计-新增-治愈----------"); -// Thread.sleep(300); -// -// //填写合计-现有-治愈 -// String totalExistingHealNum = obj.getTotalExistingHeal(); -// WebElement totalExistingHealNumEle= webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/input")); -// totalExistingHealNumEle.clear(); -// totalExistingHealNumEle.sendKeys(totalExistingHealNum); -// log.info("填写合计-现有-治愈----------"); -// Thread.sleep(300); - - //填写电网调度-新增-治愈 - String dispatchAddHealNum = obj.getDispatchAddHeal(); - WebElement dispatchAddHealNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[4]/div/div/div/input")); - dispatchAddHealNumEle.clear(); - dispatchAddHealNumEle.sendKeys(dispatchAddHealNum); - log.info("填写电网调度-新增-治愈----------"); - Thread.sleep(300); - - - //填写电网调度-现有-治愈 - String dispatchExistingHealNum = obj.getDispatchExistingHeal(); - WebElement dispatchExistingHealNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[5]/div/div/div/input")); - dispatchExistingHealNumEle.clear(); - dispatchExistingHealNumEle.sendKeys(dispatchExistingHealNum); - log.info("填写电网调度-现有-治愈----------"); - Thread.sleep(300); - - - //填写运维检修-新增-治愈 - String repairAddHealNum = obj.getRepairAddHeal(); - WebElement repairAddHealEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[6]/div/div/div/input")); - repairAddHealEle.clear(); - repairAddHealEle.sendKeys(repairAddHealNum); - log.info("填写运维检修-新增-治愈----------"); - - //填写运维检修-现有-治愈 - String repairExistingHealNum = obj.getRepairExistingHeal(); - WebElement repairExistingHealEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[7]/div/div/div/input")); - repairExistingHealEle.clear(); - repairExistingHealEle.sendKeys(repairExistingHealNum); - log.info("填写运维检修-现有-治愈----------"); - - //填写营销服务-新增-治愈 - String marketingAddHealNum = obj.getMarketingAddHeal(); - WebElement marketingAddHealEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[8]/div/div/div/input")); - marketingAddHealEle.clear(); - marketingAddHealEle.sendKeys(marketingAddHealNum); - log.info("填写营销服务-新增-治愈----------"); - - //填写营销服务-现有-治愈 - String marketingExistingHealNum = obj.getMarketingExistingHeal(); - WebElement marketingExistingHealEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[9]/div/div/div/input")); - marketingExistingHealEle.clear(); - marketingExistingHealEle.sendKeys(marketingExistingHealNum); - log.info("填写营销服务-现有-治愈----------"); - - //填写电网建设-新增-治愈 - String constructionAddHealNum = obj.getConstructionAddHeal(); - WebElement constructionAddHealEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[10]/div/div/div/input")); - constructionAddHealEle.clear(); - constructionAddHealEle.sendKeys(constructionAddHealNum); - log.info("填写营销服务-新增-治愈----------"); - - //填写电网建设-现有-治愈 - String constructionExistingHealNum = obj.getConstructionExistingHeal(); - WebElement constructionExistingHealEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[11]/div/div/div/input")); - constructionExistingHealEle.clear(); - constructionExistingHealEle.sendKeys(constructionExistingHealNum); - log.info("填写营销服务-现有-治愈----------"); - -// //填写合计-新增-疑似 -// String totalAddSuspectedNum = obj.getTotalAddSuspected(); -// WebElement totalAddSuspectedEle= webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/input")); -// totalAddSuspectedEle.clear(); -// totalAddSuspectedEle.sendKeys(totalAddSuspectedNum); -// log.info("填写合计-新增-疑似----------"); -// Thread.sleep(300); -// -// //填写合计-现有-疑似 -// String totalExistingSuspectedNum = obj.getTotalExistingSuspected(); -// WebElement totalExistingSuspectedNumEle= webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/input")); -// totalExistingSuspectedNumEle.clear(); -// totalExistingSuspectedNumEle.sendKeys(totalExistingSuspectedNum); -// log.info("填写合计-现有-疑似----------"); -// Thread.sleep(300); - - //填写电网调度-新增-疑似 - String dispatchAddSuspectedNum = obj.getDispatchAddSuspected(); - WebElement dispatchAddSuspectedNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[4]/div/div/div/input")); - dispatchAddSuspectedNumEle.clear(); - dispatchAddSuspectedNumEle.sendKeys(dispatchAddSuspectedNum); - log.info("填写电网调度-新增-疑似----------"); - Thread.sleep(300); - - - //填写电网调度-现有-疑似 - String dispatchExistingSuspectedNum = obj.getDispatchExistingSuspected(); - WebElement dispatchExistingSuspectedNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[5]/div/div/div/input")); - dispatchExistingSuspectedNumEle.clear(); - dispatchExistingSuspectedNumEle.sendKeys(dispatchExistingSuspectedNum); - log.info("填写电网调度-现有-疑似----------"); - Thread.sleep(300); - - - //填写运维检修-新增-疑似 - String repairAddSuspectedNum = obj.getRepairAddSuspected(); - WebElement repairAddSuspectedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[6]/div/div/div/input")); - repairAddSuspectedEle.clear(); - repairAddSuspectedEle.sendKeys(repairAddSuspectedNum); - log.info("填写运维检修-新增-疑似----------"); - - //填写运维检修-现有-疑似 - String repairExistingSuspectedNum = obj.getRepairExistingSuspected(); - WebElement repairExistingSuspectedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[7]/div/div/div/input")); - repairExistingSuspectedEle.clear(); - repairExistingSuspectedEle.sendKeys(repairExistingSuspectedNum); - log.info("填写运维检修-现有-疑似----------"); - - //填写营销服务-新增-疑似 - String marketingAddSuspectedNum = obj.getMarketingAddSuspected(); - WebElement marketingAddSuspectedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[8]/div/div/div/input")); - marketingAddSuspectedEle.clear(); - marketingAddSuspectedEle.sendKeys(marketingAddSuspectedNum); - log.info("填写营销服务-新增-疑似----------"); - - //填写营销服务-现有-疑似 - String marketingExistingSuspectedNum = obj.getMarketingExistingSuspected(); - WebElement marketingExistingSuspectedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[9]/div/div/div/input")); - marketingExistingSuspectedEle.clear(); - marketingExistingSuspectedEle.sendKeys(marketingExistingSuspectedNum); - log.info("填写营销服务-现有-疑似----------"); - - //填写电网建设-新增-疑似 - String constructionAddSuspectedNum = obj.getConstructionAddSuspected(); - WebElement constructionAddSuspectedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[10]/div/div/div/input")); - constructionAddSuspectedEle.clear(); - constructionAddSuspectedEle.sendKeys(constructionAddSuspectedNum); - log.info("填写营销服务-新增-疑似----------"); - - //填写电网建设-现有-疑似 - String constructionExistingSuspectedNum = obj.getConstructionExistingSuspected(); - WebElement constructionExistingSuspectedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[11]/div/div/div/input")); - constructionExistingSuspectedEle.clear(); - constructionExistingSuspectedEle.sendKeys(constructionExistingSuspectedNum); - log.info("填写营销服务-现有-疑似----------"); - - dailySchedule4(bean.getFourBean(), bean); - } - - //操作附表4 - private void dailySchedule4(AnnexFourBean obj, DailyBean bean) throws InterruptedException { - //填写定点医院 - String ddyy = obj.getDesignated_hospitals(); - WebElement ddyEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/div/input")); - ddyEle.clear(); - ddyEle.sendKeys(ddyy); - log.info("填写定点医院----------"); - Thread.sleep(300); - - - //填写发热门诊 - String frmz = obj.getFever_clinic(); - WebElement frmzEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); - frmzEle.clear(); - frmzEle.sendKeys(frmz); - log.info("填写发热门诊----------"); - Thread.sleep(300); - - - //填写防疫用品企业 - String fyypqy = obj.getEpidemic_enterprise(); - WebElement fyypqyEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); - fyypqyEle.clear(); - fyypqyEle.sendKeys(fyypqy); - log.info("填写防疫用品企业----------"); - Thread.sleep(300); - - - //填写其他重要用户 - String qtzyyh = obj.getOther_important_users(); - WebElement qtzyyhEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); - qtzyyhEle.clear(); - qtzyyhEle.sendKeys(qtzyyh); - log.info("填写其他重要用户----------"); - Thread.sleep(300); - - - //填写客户用电保障人员 - String khydbz = obj.getCustomer_power_personnel(); - WebElement khydbzEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); - khydbzEle.clear(); - khydbzEle.sendKeys(khydbz); - log.info("填写客户用电保障人员----------"); - Thread.sleep(300); - - - //填写电网运维保障人员 - String dwywbzry = obj.getPower_devops_personnel(); - WebElement dwywbzryEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); - dwywbzryEle.clear(); - dwywbzryEle.sendKeys(dwywbzry); - log.info("填写电网运维保障人员----------"); - Thread.sleep(300); - - - //填写保电车辆 - String bdcl = obj.getElectrically_vehicles(); - WebElement bdclEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); - bdclEle.clear(); - bdclEle.sendKeys(bdcl); - log.info("填写保电车辆----------"); - Thread.sleep(300); - - - //填写应急发电车 - String yjfdc = obj.getEmergency_power_vehicles(); - WebElement yjfdcEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); - yjfdcEle.clear(); - yjfdcEle.sendKeys(yjfdc); - log.info("填写应急发电车----------"); - Thread.sleep(300); - - - //填写应急发电机 - String yjfdj = obj.getEmergency_generator(); - WebElement yjfdjEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); - yjfdjEle.clear(); - yjfdjEle.sendKeys(yjfdj); - log.info("填写应急发电机----------"); - Thread.sleep(300); - dailySchedule5(bean.getFiveBean(), bean); - } - - //操作附表5 - private void dailySchedule5(AnnexFiveBean obj, DailyBean bean) throws InterruptedException { - //填写机场/港口 - String airportPortNum = obj.getAirportPort(); - WebElement airportPortEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/div/input")); - airportPortEle.clear(); - airportPortEle.sendKeys(airportPortNum); - log.info("填写机场/港口----------"); - Thread.sleep(300); - - //填写机场/港口 - String venueHospitalNum = obj.getVenueHospital(); - WebElement venueHospitalNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); - venueHospitalNumEle.clear(); - venueHospitalNumEle.sendKeys(venueHospitalNum); - log.info("填写机场/港口----------"); - Thread.sleep(300); - - //填写宾馆酒店 - String guesthouseHotelNum = obj.getGuesthouseHotel(); - WebElement guesthouseHotelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); - guesthouseHotelNumEle.clear(); - guesthouseHotelNumEle.sendKeys(guesthouseHotelNum); - log.info("填写宾馆酒店---------"); - Thread.sleep(300); - - - //填写保障人员 - String safeguardPersonnelNum = obj.getSafeguardPersonnel(); - WebElement safeguardPersonnelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); - safeguardPersonnelNumEle.clear(); - safeguardPersonnelNumEle.sendKeys(safeguardPersonnelNum); - log.info("填写保障人员---------"); - Thread.sleep(300); - - - //填写保电车辆 - String electricallyGuaranteedVehiclesNum = obj.getElectricallyGuaranteedVehicles(); - WebElement electricallyGuaranteedVehiclesEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); - electricallyGuaranteedVehiclesEle.clear(); - electricallyGuaranteedVehiclesEle.sendKeys(electricallyGuaranteedVehiclesNum); - log.info("填写保电车辆----------"); - - //填写发电车 - String powerGenerationVehiclesNum = obj.getPowerGenerationVehicles(); - WebElement powerGenerationVehiclesEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); - powerGenerationVehiclesEle.clear(); - powerGenerationVehiclesEle.sendKeys(powerGenerationVehiclesNum); - log.info("填写发电车---------"); - - //填写发电机 - String dynamoNum = obj.getDynamo(); - WebElement dynamoEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); - dynamoEle.clear(); - dynamoEle.sendKeys(dynamoNum); - log.info("填写发电机---------"); - - //填写备注 - String fiveRemark = obj.getRemark(); - WebElement fiveRemarkEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/input")); - fiveRemarkEle.clear(); - fiveRemarkEle.sendKeys(fiveRemark); - log.info("填写备注----------"); - Thread.sleep(300); dailySchedule6(bean.getSixBean(), bean); } - //操作附表6 + //操作附表3 无 +// private void dailySchedule3(AnnexThreeBean obj, DailyBean bean) throws InterruptedException { +//// //填写合计-新增-确诊 +//// String totalAddDiagnosedNum = obj.getTotalAddDiagnosed(); +//// WebElement totalAddDiagnosedEle= webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/input")); +//// totalAddDiagnosedEle.clear(); +//// totalAddDiagnosedEle.sendKeys(totalAddDiagnosedNum); +//// log.info("填写合计-新增-确诊----------"); +//// Thread.sleep(300); +//// +//// //填写合计-现有-确诊 +//// String totalExistingDiagnosedNum = obj.getTotalExistingDiagnosed(); +//// WebElement totalExistingDiagnosedNumEle= webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/input")); +//// totalExistingDiagnosedNumEle.clear(); +//// totalExistingDiagnosedNumEle.sendKeys(totalExistingDiagnosedNum); +//// log.info("填写合计-现有-确诊----------"); +//// Thread.sleep(300); +// +// try { +// //填写电网调度-新增-确诊 +// String dispatchAddDiagnosedNum = obj.getDispatchAddDiagnosed(); +// WebElement dispatchAddDiagnosedNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[6]/div/div/div/input")); +// dispatchAddDiagnosedNumEle.clear(); +// dispatchAddDiagnosedNumEle.sendKeys(dispatchAddDiagnosedNum); +// log.info("填写电网调度-新增-确诊----------"); +// Thread.sleep(300); +// }catch (Exception e) { +// log.info("填写电网调度-新增-确诊不存在此元素----------"); +// } +// +// try { +// //填写电网调度-现有-确诊 +// String dispatchExistingDiagnosedNum = obj.getDispatchExistingDiagnosed(); +// WebElement dispatchExistingDiagnosedNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[7]/div/div/div/input")); +// dispatchExistingDiagnosedNumEle.clear(); +// dispatchExistingDiagnosedNumEle.sendKeys(dispatchExistingDiagnosedNum); +// log.info("填写电网调度-现有-确诊----------"); +// Thread.sleep(300); +// }catch (Exception e) { +// log.info("填写电网调度-现有-确诊不存在此元素----------"); +// } +// +// try { +// //填写运维检修-新增-确诊 +// String repairAddDiagnosedNum = obj.getRepairAddDiagnosed(); +// WebElement repairAddDiagnosedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[8]/div/div/div/input")); +// repairAddDiagnosedEle.clear(); +// repairAddDiagnosedEle.sendKeys(repairAddDiagnosedNum); +// log.info("填写运维检修-新增-确诊----------"); +// }catch (Exception e) { +// log.info("填写电网调度-现有-确诊不存在此元素----------"); +// } +// +// try { +// //填写运维检修-现有-确诊 +// String repairExistingDiagnosedNum = obj.getRepairExistingDiagnosed(); +// WebElement repairExistingDiagnosedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[9]/div/div/div/input")); +// repairExistingDiagnosedEle.clear(); +// repairExistingDiagnosedEle.sendKeys(repairExistingDiagnosedNum); +// log.info("填写运维检修-现有-确诊----------"); +// }catch (Exception e) { +// log.info("填写运维检修-现有-确诊不存在此元素----------"); +// } +// +// try { +// //填写营销服务-新增-确诊 +// String marketingAddDiagnosedNum = obj.getMarketingAddDiagnosed(); +// WebElement marketingAddDiagnosedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[10]/div/div/div/input")); +// marketingAddDiagnosedEle.clear(); +// marketingAddDiagnosedEle.sendKeys(marketingAddDiagnosedNum); +// log.info("填写营销服务-新增-确诊----------"); +// }catch (Exception e) { +// log.info("填写运维检修-现有-确诊不存在此元素----------"); +// } +// +// try { +// //填写营销服务-现有-确诊 +// String marketingExistingDiagnosedNum = obj.getMarketingExistingDiagnosed(); +// WebElement marketingExistingDiagnosedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[11]/div/div/div/input")); +// marketingExistingDiagnosedEle.clear(); +// marketingExistingDiagnosedEle.sendKeys(marketingExistingDiagnosedNum); +// log.info("填写营销服务-现有-确诊----------"); +// }catch (Exception e) { +// log.info("填写营销服务-现有-确诊不存在此元素----------"); +// } +// +// try { +// //填写电网建设-新增-确诊 +// String constructionAddDiagnosedNum = obj.getConstructionAddDiagnosed(); +// WebElement constructionAddDiagnosedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[12]/div/div/div/input")); +// constructionAddDiagnosedEle.clear(); +// constructionAddDiagnosedEle.sendKeys(constructionAddDiagnosedNum); +// log.info("填写营销服务-新增-确诊----------"); +// }catch (Exception e) { +// log.info("填写营销服务-现有-确诊不存在此元素----------"); +// } +// +// try{ +// //填写电网建设-现有-确诊 +// String constructionExistingDiagnosedNum = obj.getConstructionExistingDiagnosed(); +// WebElement constructionExistingDiagnosedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[1]/td[13]/div/div/div/input")); +// constructionExistingDiagnosedEle.clear(); +// constructionExistingDiagnosedEle.sendKeys(constructionExistingDiagnosedNum); +// log.info("填写营销服务-现有-确诊----------"); +// }catch (Exception e) { +// log.info("填写电网建设-新增-确诊不存在此元素----------"); +// } +// +//// //填写合计-新增-治愈 +//// String totalAddHealNum = obj.getTotalAddHeal(); +//// WebElement totalAddHealEle= webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/input")); +//// totalAddHealEle.clear(); +//// totalAddHealEle.sendKeys(totalAddHealNum); +//// log.info("填写合计-新增-治愈----------"); +//// Thread.sleep(300); +//// +//// //填写合计-现有-治愈 +//// String totalExistingHealNum = obj.getTotalExistingHeal(); +//// WebElement totalExistingHealNumEle= webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/input")); +//// totalExistingHealNumEle.clear(); +//// totalExistingHealNumEle.sendKeys(totalExistingHealNum); +//// log.info("填写合计-现有-治愈----------"); +//// Thread.sleep(300); +// +// try { +// //填写电网调度-新增-治愈 +// String dispatchAddHealNum = obj.getDispatchAddHeal(); +// WebElement dispatchAddHealNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[4]/div/div/div/input")); +// dispatchAddHealNumEle.clear(); +// dispatchAddHealNumEle.sendKeys(dispatchAddHealNum); +// log.info("填写电网调度-新增-治愈----------"); +// Thread.sleep(300); +// }catch (Exception e) { +// log.info("填写电网调度-新增-治愈不存在此元素----------"); +// } +// +// try { +// //填写电网调度-现有-治愈 +// String dispatchExistingHealNum = obj.getDispatchExistingHeal(); +// WebElement dispatchExistingHealNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[5]/div/div/div/input")); +// dispatchExistingHealNumEle.clear(); +// dispatchExistingHealNumEle.sendKeys(dispatchExistingHealNum); +// log.info("填写电网调度-现有-治愈----------"); +// Thread.sleep(300); +// }catch (Exception e) { +// log.info("填写电网调度-现有-治愈不存在此元素----------"); +// } +// +// try { +// //填写运维检修-新增-治愈 +// String repairAddHealNum = obj.getRepairAddHeal(); +// WebElement repairAddHealEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[6]/div/div/div/input")); +// repairAddHealEle.clear(); +// repairAddHealEle.sendKeys(repairAddHealNum); +// log.info("填写运维检修-新增-治愈----------"); +// }catch (Exception e) { +// log.info("填写运维检修-新增-治愈不存在此元素----------"); +// } +// +// try { +// //填写运维检修-现有-治愈 +// String repairExistingHealNum = obj.getRepairExistingHeal(); +// WebElement repairExistingHealEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[7]/div/div/div/input")); +// repairExistingHealEle.clear(); +// repairExistingHealEle.sendKeys(repairExistingHealNum); +// log.info("填写运维检修-现有-治愈----------"); +// }catch (Exception e){ +// log.info("填写运维检修-现有-治愈----------"); +// } +// +// //填写营销服务-新增-治愈 +// String marketingAddHealNum = obj.getMarketingAddHeal(); +// WebElement marketingAddHealEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[8]/div/div/div/input")); +// marketingAddHealEle.clear(); +// marketingAddHealEle.sendKeys(marketingAddHealNum); +// log.info("填写营销服务-新增-治愈----------"); +// +// //填写营销服务-现有-治愈 +// String marketingExistingHealNum = obj.getMarketingExistingHeal(); +// WebElement marketingExistingHealEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[9]/div/div/div/input")); +// marketingExistingHealEle.clear(); +// marketingExistingHealEle.sendKeys(marketingExistingHealNum); +// log.info("填写营销服务-现有-治愈----------"); +// +// //填写电网建设-新增-治愈 +// String constructionAddHealNum = obj.getConstructionAddHeal(); +// WebElement constructionAddHealEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[10]/div/div/div/input")); +// constructionAddHealEle.clear(); +// constructionAddHealEle.sendKeys(constructionAddHealNum); +// log.info("填写营销服务-新增-治愈----------"); +// +// //填写电网建设-现有-治愈 +// String constructionExistingHealNum = obj.getConstructionExistingHeal(); +// WebElement constructionExistingHealEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[2]/td[11]/div/div/div/input")); +// constructionExistingHealEle.clear(); +// constructionExistingHealEle.sendKeys(constructionExistingHealNum); +// log.info("填写营销服务-现有-治愈----------"); +// +//// //填写合计-新增-疑似 +//// String totalAddSuspectedNum = obj.getTotalAddSuspected(); +//// WebElement totalAddSuspectedEle= webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/input")); +//// totalAddSuspectedEle.clear(); +//// totalAddSuspectedEle.sendKeys(totalAddSuspectedNum); +//// log.info("填写合计-新增-疑似----------"); +//// Thread.sleep(300); +//// +//// //填写合计-现有-疑似 +//// String totalExistingSuspectedNum = obj.getTotalExistingSuspected(); +//// WebElement totalExistingSuspectedNumEle= webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[2]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/input")); +//// totalExistingSuspectedNumEle.clear(); +//// totalExistingSuspectedNumEle.sendKeys(totalExistingSuspectedNum); +//// log.info("填写合计-现有-疑似----------"); +//// Thread.sleep(300); +// +// //填写电网调度-新增-疑似 +// String dispatchAddSuspectedNum = obj.getDispatchAddSuspected(); +// WebElement dispatchAddSuspectedNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[4]/div/div/div/input")); +// dispatchAddSuspectedNumEle.clear(); +// dispatchAddSuspectedNumEle.sendKeys(dispatchAddSuspectedNum); +// log.info("填写电网调度-新增-疑似----------"); +// Thread.sleep(300); +// +// +// //填写电网调度-现有-疑似 +// String dispatchExistingSuspectedNum = obj.getDispatchExistingSuspected(); +// WebElement dispatchExistingSuspectedNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[5]/div/div/div/input")); +// dispatchExistingSuspectedNumEle.clear(); +// dispatchExistingSuspectedNumEle.sendKeys(dispatchExistingSuspectedNum); +// log.info("填写电网调度-现有-疑似----------"); +// Thread.sleep(300); +// +// +// //填写运维检修-新增-疑似 +// String repairAddSuspectedNum = obj.getRepairAddSuspected(); +// WebElement repairAddSuspectedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[6]/div/div/div/input")); +// repairAddSuspectedEle.clear(); +// repairAddSuspectedEle.sendKeys(repairAddSuspectedNum); +// log.info("填写运维检修-新增-疑似----------"); +// +// //填写运维检修-现有-疑似 +// String repairExistingSuspectedNum = obj.getRepairExistingSuspected(); +// WebElement repairExistingSuspectedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[7]/div/div/div/input")); +// repairExistingSuspectedEle.clear(); +// repairExistingSuspectedEle.sendKeys(repairExistingSuspectedNum); +// log.info("填写运维检修-现有-疑似----------"); +// +// //填写营销服务-新增-疑似 +// String marketingAddSuspectedNum = obj.getMarketingAddSuspected(); +// WebElement marketingAddSuspectedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[8]/div/div/div/input")); +// marketingAddSuspectedEle.clear(); +// marketingAddSuspectedEle.sendKeys(marketingAddSuspectedNum); +// log.info("填写营销服务-新增-疑似----------"); +// +// //填写营销服务-现有-疑似 +// String marketingExistingSuspectedNum = obj.getMarketingExistingSuspected(); +// WebElement marketingExistingSuspectedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[9]/div/div/div/input")); +// marketingExistingSuspectedEle.clear(); +// marketingExistingSuspectedEle.sendKeys(marketingExistingSuspectedNum); +// log.info("填写营销服务-现有-疑似----------"); +// +// //填写电网建设-新增-疑似 +// String constructionAddSuspectedNum = obj.getConstructionAddSuspected(); +// WebElement constructionAddSuspectedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[10]/div/div/div/input")); +// constructionAddSuspectedEle.clear(); +// constructionAddSuspectedEle.sendKeys(constructionAddSuspectedNum); +// log.info("填写营销服务-新增-疑似----------"); +// +// //填写电网建设-现有-疑似 +// String constructionExistingSuspectedNum = obj.getConstructionExistingSuspected(); +// WebElement constructionExistingSuspectedEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div[2]/div/div/div[3]/table/tbody/tr[3]/td[11]/div/div/div/input")); +// constructionExistingSuspectedEle.clear(); +// constructionExistingSuspectedEle.sendKeys(constructionExistingSuspectedNum); +// log.info("填写营销服务-现有-疑似----------"); +// +// dailySchedule4(bean.getFourBean(), bean); +// } + + //操作附表4 无 +// private void dailySchedule4(AnnexFourBean obj, DailyBean bean) throws InterruptedException { +// //填写定点医院 +// String ddyy = obj.getDesignated_hospitals(); +// WebElement ddyEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/div/input")); +// ddyEle.clear(); +// ddyEle.sendKeys(ddyy); +// log.info("填写定点医院----------"); +// Thread.sleep(300); +// +// +// //填写发热门诊 +// String frmz = obj.getFever_clinic(); +// WebElement frmzEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); +// frmzEle.clear(); +// frmzEle.sendKeys(frmz); +// log.info("填写发热门诊----------"); +// Thread.sleep(300); +// +// +// //填写防疫用品企业 +// String fyypqy = obj.getEpidemic_enterprise(); +// WebElement fyypqyEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); +// fyypqyEle.clear(); +// fyypqyEle.sendKeys(fyypqy); +// log.info("填写防疫用品企业----------"); +// Thread.sleep(300); +// +// +// //填写其他重要用户 +// String qtzyyh = obj.getOther_important_users(); +// WebElement qtzyyhEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); +// qtzyyhEle.clear(); +// qtzyyhEle.sendKeys(qtzyyh); +// log.info("填写其他重要用户----------"); +// Thread.sleep(300); +// +// +// //填写客户用电保障人员 +// String khydbz = obj.getCustomer_power_personnel(); +// WebElement khydbzEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); +// khydbzEle.clear(); +// khydbzEle.sendKeys(khydbz); +// log.info("填写客户用电保障人员----------"); +// Thread.sleep(300); +// +// +// //填写电网运维保障人员 +// String dwywbzry = obj.getPower_devops_personnel(); +// WebElement dwywbzryEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); +// dwywbzryEle.clear(); +// dwywbzryEle.sendKeys(dwywbzry); +// log.info("填写电网运维保障人员----------"); +// Thread.sleep(300); +// +// +// //填写保电车辆 +// String bdcl = obj.getElectrically_vehicles(); +// WebElement bdclEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); +// bdclEle.clear(); +// bdclEle.sendKeys(bdcl); +// log.info("填写保电车辆----------"); +// Thread.sleep(300); +// +// +// //填写应急发电车 +// String yjfdc = obj.getEmergency_power_vehicles(); +// WebElement yjfdcEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); +// yjfdcEle.clear(); +// yjfdcEle.sendKeys(yjfdc); +// log.info("填写应急发电车----------"); +// Thread.sleep(300); +// +// +// //填写应急发电机 +// String yjfdj = obj.getEmergency_generator(); +// WebElement yjfdjEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); +// yjfdjEle.clear(); +// yjfdjEle.sendKeys(yjfdj); +// log.info("填写应急发电机----------"); +// Thread.sleep(300); +// dailySchedule5(bean.getFiveBean(), bean); +// } + + //操作附表5 无 +// private void dailySchedule5(AnnexFiveBean obj, DailyBean bean) throws InterruptedException { +// //填写机场/港口 +// String airportPortNum = obj.getAirportPort(); +// WebElement airportPortEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/div/input")); +// airportPortEle.clear(); +// airportPortEle.sendKeys(airportPortNum); +// log.info("填写机场/港口----------"); +// Thread.sleep(300); +// +// //填写机场/港口 +// String venueHospitalNum = obj.getVenueHospital(); +// WebElement venueHospitalNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); +// venueHospitalNumEle.clear(); +// venueHospitalNumEle.sendKeys(venueHospitalNum); +// log.info("填写机场/港口----------"); +// Thread.sleep(300); +// +// //填写宾馆酒店 +// String guesthouseHotelNum = obj.getGuesthouseHotel(); +// WebElement guesthouseHotelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); +// guesthouseHotelNumEle.clear(); +// guesthouseHotelNumEle.sendKeys(guesthouseHotelNum); +// log.info("填写宾馆酒店---------"); +// Thread.sleep(300); +// +// +// //填写保障人员 +// String safeguardPersonnelNum = obj.getSafeguardPersonnel(); +// WebElement safeguardPersonnelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); +// safeguardPersonnelNumEle.clear(); +// safeguardPersonnelNumEle.sendKeys(safeguardPersonnelNum); +// log.info("填写保障人员---------"); +// Thread.sleep(300); +// +// +// //填写保电车辆 +// String electricallyGuaranteedVehiclesNum = obj.getElectricallyGuaranteedVehicles(); +// WebElement electricallyGuaranteedVehiclesEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); +// electricallyGuaranteedVehiclesEle.clear(); +// electricallyGuaranteedVehiclesEle.sendKeys(electricallyGuaranteedVehiclesNum); +// log.info("填写保电车辆----------"); +// +// //填写发电车 +// String powerGenerationVehiclesNum = obj.getPowerGenerationVehicles(); +// WebElement powerGenerationVehiclesEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); +// powerGenerationVehiclesEle.clear(); +// powerGenerationVehiclesEle.sendKeys(powerGenerationVehiclesNum); +// log.info("填写发电车---------"); +// +// //填写发电机 +// String dynamoNum = obj.getDynamo(); +// WebElement dynamoEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); +// dynamoEle.clear(); +// dynamoEle.sendKeys(dynamoNum); +// log.info("填写发电机---------"); +// +// //填写备注 +// String fiveRemark = obj.getRemark(); +// WebElement fiveRemarkEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/input")); +// fiveRemarkEle.clear(); +// fiveRemarkEle.sendKeys(fiveRemark); +// log.info("填写备注----------"); +// Thread.sleep(300); +// dailySchedule6(bean.getSixBean(), bean); +// } + + //操作附表6 --- 》变成3 private void dailySchedule6(AnnexSixBean obj, DailyBean bean) throws InterruptedException { //判断是否需要填写 - WebElement tbody = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6]/div/div[2]/div/div/div[3]/table/tbody")); + WebElement tbody = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3]/div" + + "/div[2]/div/div/div[3]/table/tbody")); List trlist = tbody.findElements(By.tagName("tr")); log.info("附表6tr:" + trlist.size()); @@ -783,69 +819,75 @@ public class DutyDailyOp { //填写领导及指挥人员 String ldjzhry = obj.getLeaders_command_staff(); - WebElement ldjzhryEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6]/div/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/input")); + WebElement ldjzhryEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1" + + "]/div[3]/div/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/input")); ldjzhryEle.clear(); ldjzhryEle.sendKeys(ldjzhry); log.info("填写领导及指挥人员----------"); Thread.sleep(300); -// //填写人员数量 -// String personNum = obj.getInput_amount_person(); -// WebElement ryslEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6]/div/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); -// ryslEle.clear(); -// Thread.sleep(300); -// ryslEle.sendKeys(personNum); -// log.info("填写人员数量----------"); -// Thread.sleep(300); -// -// -// //填写车辆数量 -// String carNum = obj.getInput_amount_vehicle(); -// WebElement clslEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6]/div/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); -// clslEle.clear(); -// Thread.sleep(300); -// clslEle.sendKeys(carNum); -// log.info("填写车辆数量----------"); -// Thread.sleep(300); -// -// -// //填写发电车数量 -// String fdcNum = obj.getInput_amount_power_vehicle(); -// WebElement fdcNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6]/div/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input")); -// fdcNumEle.clear(); -// Thread.sleep(300); -// fdcNumEle.sendKeys(fdcNum); -// log.info("填写发电车数量----------"); -// Thread.sleep(300); -// -// -// //填写发电机数量 -// String fdjNum = obj.getInput_amount_dynamo(); -// WebElement fdjNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6]/div/div[2]/div/div/div[3]/table/tbody/tr/td[13]/div/div/div/input")); -// fdjNumEle.clear(); -// Thread.sleep(300); -// fdjNumEle.sendKeys(fdjNum); -// log.info("填写发电机数量----------"); -// Thread.sleep(300); -// -// -// String bz = obj.getRemark(); -// WebElement bzEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6]/div/div[2]/div/div/div[3]/table/tbody/tr/td[14]/div/div/input")); -// bzEle.clear(); -// bzEle.sendKeys(bz); -// log.info("填写备注----------"); -// Thread.sleep(300); + //填写人员数量 + String personNum = obj.getInput_amount_person(); + WebElement ryslEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3" + + "]/div/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); + ryslEle.clear(); + Thread.sleep(300); + ryslEle.sendKeys(personNum); + log.info("填写人员数量----------"); + Thread.sleep(300); + + + //填写车辆数量 + String carNum = obj.getInput_amount_vehicle(); + WebElement clslEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3" + + "]/div/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); + clslEle.clear(); + Thread.sleep(300); + clslEle.sendKeys(carNum); + log.info("填写车辆数量----------"); + Thread.sleep(300); + + + //填写发电车数量 + String fdcNum = obj.getInput_amount_power_vehicle(); + WebElement fdcNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div" + + "[3]/div/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input")); + fdcNumEle.clear(); + Thread.sleep(300); + fdcNumEle.sendKeys(fdcNum); + log.info("填写发电车数量----------"); + Thread.sleep(300); + + + //填写发电机数量 + String fdjNum = obj.getInput_amount_dynamo(); + WebElement fdjNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div" + + "[3]/div/div[2]/div/div/div[3]/table/tbody/tr/td[13]/div/div/div/input")); + fdjNumEle.clear(); + Thread.sleep(300); + fdjNumEle.sendKeys(fdjNum); + log.info("填写发电机数量----------"); + Thread.sleep(300); + + + String bz = obj.getRemark(); + WebElement bzEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[3" + + "]/div/div[2]/div/div/div[3]/table/tbody/tr/td[14]/div/div/input")); + bzEle.clear(); + bzEle.sendKeys(bz); + log.info("填写备注----------"); + Thread.sleep(300); } dailySchedule7(bean.getSevenBean(), bean); -// submitData(); } - //操作附表7 + //操作附表7 --- > 变成4 private void dailySchedule7(AnnexSevenBean obj, DailyBean bean) throws InterruptedException { //填写因灾停运-特高压 String psaou = obj.getPower_substation_add_outage_uvh(); - WebElement psaouEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); + WebElement psaouEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); psaouEle.clear(); psaouEle.sendKeys(psaou); log.info("填写新增-因灾停运-特高压----------"); @@ -854,7 +896,8 @@ public class DutyDailyOp { //填写因灾停运-500 String psaof = obj.getPower_substation_add_outage_five(); - WebElement psaofEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); + WebElement psaofEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); psaofEle.clear(); psaofEle.sendKeys(psaof); log.info("填写新增-因灾停运-500kv----------"); @@ -863,7 +906,8 @@ public class DutyDailyOp { //填写因灾停运-300 String psaot = obj.getPower_substation_add_outage_two(); - WebElement psaotEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); + WebElement psaotEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); psaotEle.clear(); psaotEle.sendKeys(psaot); log.info("填写新增-因灾停运-220/300kv----------"); @@ -871,7 +915,8 @@ public class DutyDailyOp { //填写因灾停运-100 String psaoo = obj.getPower_substation_add_outage_one(); - WebElement psaooEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); + WebElement psaooEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); psaooEle.clear(); psaooEle.sendKeys(psaoo); log.info("填写新增-因灾停运-100/66kv----------"); @@ -879,7 +924,8 @@ public class DutyDailyOp { //填写因灾停运-35 String psaoth = obj.getPower_substation_add_outage_three(); - WebElement psaothEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); + WebElement psaothEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); psaothEle.clear(); psaothEle.sendKeys(psaoth); log.info("填写新增-因灾停运-35kv----------"); @@ -888,7 +934,8 @@ public class DutyDailyOp { //填写抢修恢复-特高压 String psaru = obj.getPower_substation_add_repair_uvh(); - WebElement psaruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); + WebElement psaruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); psaruEle.clear(); psaruEle.sendKeys(psaru); log.info("填写新增-抢修恢复-特高压----------"); @@ -896,7 +943,8 @@ public class DutyDailyOp { //填写抢修恢复-500 String psarf = obj.getPower_substation_add_repair_five(); - WebElement psarfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); + WebElement psarfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); psarfEle.clear(); psarfEle.sendKeys(psarf); log.info("填写新增-抢修恢复-500kv----------"); @@ -904,7 +952,8 @@ public class DutyDailyOp { //填写抢修恢复-220/300 String psart = obj.getPower_substation_add_repair_two(); - WebElement psartEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); + WebElement psartEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); psartEle.clear(); psartEle.sendKeys(psart); log.info("填写新增-抢修恢复-220/300kv----------"); @@ -912,7 +961,8 @@ public class DutyDailyOp { //填写抢修恢复-100 String psaro = obj.getPower_substation_add_repair_one(); - WebElement psaroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input")); + WebElement psaroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input")); psaroEle.clear(); psaroEle.sendKeys(psaro); log.info("填写新增-抢修恢复-100/66kv----------"); @@ -920,7 +970,8 @@ public class DutyDailyOp { //填写抢修恢复-35 String psarth = obj.getPower_substation_add_repair_three(); - WebElement psarthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[13]/div/div/div/input")); + WebElement psarthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[13]/div/div/div/input")); psarthEle.clear(); psarthEle.sendKeys(psarth); log.info("填写新增-抢修恢复-35kv----------"); @@ -929,7 +980,8 @@ public class DutyDailyOp { //填写尚未恢复-特高压 String psanru = obj.getPower_substation_add_no_repair_uvh(); - WebElement psanruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[14]/div/div/div/input")); + WebElement psanruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[14]/div/div/div/input")); psanruEle.clear(); psanruEle.sendKeys(psanru); log.info("填写新增-尚未恢复-特高压----------"); @@ -937,7 +989,8 @@ public class DutyDailyOp { //填写尚未恢复-500 String psanrf = obj.getPower_substation_add_no_repair_five(); - WebElement psanrfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[15]/div/div/div/input")); + WebElement psanrfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[15]/div/div/div/input")); psanrfEle.clear(); psanrfEle.sendKeys(psanrf); log.info("填写新增-尚未恢复-500kv----------"); @@ -945,7 +998,8 @@ public class DutyDailyOp { //填写尚未恢复-220/300 String psanrt = obj.getPower_substation_add_no_repair_two(); - WebElement psanrtEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[16]/div/div/div/input")); + WebElement psanrtEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[16]/div/div/div/input")); psanrtEle.clear(); psanrtEle.sendKeys(psanrt); log.info("填写新增-尚未恢复-220/300kv----------"); @@ -953,7 +1007,8 @@ public class DutyDailyOp { //填写尚未恢复-100 String psanro = obj.getPower_substation_add_no_repair_one(); - WebElement psanroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[17]/div/div/div/input")); + WebElement psanroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[17]/div/div/div/input")); psanroEle.clear(); psanroEle.sendKeys(psanro); log.info("填写新增-尚未恢复-100/66kv----------"); @@ -961,7 +1016,8 @@ public class DutyDailyOp { //填写尚未恢复-35 String psanrth = obj.getPower_substation_add_no_repair_three(); - WebElement psanrthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7]/div[2]/div/div/div[3]/table/tbody/tr/td[18]/div/div/div/input")); + WebElement psanrthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[4" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[18]/div/div/div/input")); psanrthEle.clear(); psanrthEle.sendKeys(psanrth); log.info("填写新增-尚未恢复-35kv----------"); @@ -970,7 +1026,8 @@ public class DutyDailyOp { //填写因灾停运-特高压 String pscou = obj.getPower_substation_cumulative_outage_uvh(); - WebElement pscouEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); + WebElement pscouEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); pscouEle.clear(); pscouEle.sendKeys(pscou); log.info("填写累计-因灾停运-特高压----------"); @@ -979,7 +1036,8 @@ public class DutyDailyOp { //填写因灾停运-500 String pscof = obj.getPower_substation_cumulative_outage_five(); - WebElement pscofEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); + WebElement pscofEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); pscofEle.clear(); pscofEle.sendKeys(pscof); log.info("填写累计-因灾停运-500kv----------"); @@ -988,7 +1046,8 @@ public class DutyDailyOp { //填写因灾停运-300 String pscot = obj.getPower_substation_cumulative_outage_two(); - WebElement pscotEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); + WebElement pscotEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); pscotEle.clear(); pscotEle.sendKeys(pscot); log.info("填写累计-因灾停运-220/300kv----------"); @@ -996,7 +1055,8 @@ public class DutyDailyOp { //填写因灾停运-100 String pscoo = obj.getPower_substation_cumulative_outage_one(); - WebElement pscooEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); + WebElement pscooEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); pscooEle.clear(); pscooEle.sendKeys(pscoo); log.info("填写累计-因灾停运-100/66kv----------"); @@ -1004,7 +1064,8 @@ public class DutyDailyOp { //填写因灾停运-35 String pscoth = obj.getPower_substation_cumulative_outage_three(); - WebElement pscothEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); + WebElement pscothEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); pscothEle.clear(); pscothEle.sendKeys(pscoth); log.info("填写累计-因灾停运-35kv----------"); @@ -1013,7 +1074,8 @@ public class DutyDailyOp { //填写抢修恢复-特高压 String pscru = obj.getPower_substation_cumulative_repair_uvh(); - WebElement pscruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); + WebElement pscruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); pscruEle.clear(); pscruEle.sendKeys(pscru); log.info("填写累计-抢修恢复-特高压----------"); @@ -1021,7 +1083,8 @@ public class DutyDailyOp { //填写抢修恢复-500 String pscrf = obj.getPower_substation_cumulative_repair_five(); - WebElement pscrfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); + WebElement pscrfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); pscrfEle.clear(); pscrfEle.sendKeys(pscrf); log.info("填写累计-抢修恢复-500kv----------"); @@ -1029,7 +1092,8 @@ public class DutyDailyOp { //填写抢修恢复-220/300 String pscrt = obj.getPower_substation_cumulative_outage_two(); - WebElement pscrtEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); + WebElement pscrtEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); pscrtEle.clear(); pscrtEle.sendKeys(pscrt); log.info("填写累计-抢修恢复-220/300kv----------"); @@ -1037,7 +1101,8 @@ public class DutyDailyOp { //填写抢修恢复-100 String pscro = obj.getPower_substation_cumulative_repair_one(); - WebElement pscroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input")); + WebElement pscroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input")); pscroEle.clear(); pscroEle.sendKeys(pscro); log.info("填写累计-抢修恢复-100/66kv----------"); @@ -1045,7 +1110,8 @@ public class DutyDailyOp { //填写抢修恢复-35 String pscrth = obj.getPower_substation_cumulative_outage_three(); - WebElement pscrthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[13]/div/div/div/input")); + WebElement pscrthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[13]/div/div/div/input")); pscrthEle.clear(); pscrthEle.sendKeys(pscrth); log.info("填写累计-抢修恢复-35kv----------"); @@ -1054,7 +1120,8 @@ public class DutyDailyOp { //填写尚未恢复-特高压 String pscnru = obj.getPower_substation_cumulative_no_repair_uvh(); - WebElement pscnruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[14]/div/div/div/input")); + WebElement pscnruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[14]/div/div/div/input")); pscnruEle.clear(); pscnruEle.sendKeys(pscnru); log.info("填写累计-尚未恢复-特高压----------"); @@ -1062,7 +1129,8 @@ public class DutyDailyOp { //填写尚未恢复-500 String pscnrf = obj.getPower_substation_cumulative_no_repair_five(); - WebElement pscnrfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[15]/div/div/div/input")); + WebElement pscnrfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[15]/div/div/div/input")); pscnrfEle.clear(); pscnrfEle.sendKeys(pscnrf); log.info("填写累计-尚未恢复-500kv----------"); @@ -1070,7 +1138,8 @@ public class DutyDailyOp { //填写尚未恢复-220/300 String pscnrt = obj.getPower_substation_cumulative_no_repair_two(); - WebElement pscnrtEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[16]/div/div/div/input")); + WebElement pscnrtEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[16]/div/div/div/input")); pscnrtEle.clear(); pscnrtEle.sendKeys(pscnrt); log.info("填写累计-尚未恢复-220/300kv----------"); @@ -1078,7 +1147,8 @@ public class DutyDailyOp { //填写尚未恢复-100 String pscnro = obj.getPower_substation_cumulative_no_repair_one(); - WebElement pscnroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[17]/div/div/div/input")); + WebElement pscnroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[17]/div/div/div/input")); pscnroEle.clear(); pscnroEle.sendKeys(pscnro); log.info("填写累计-尚未恢复-100/66kv----------"); @@ -1086,7 +1156,8 @@ public class DutyDailyOp { //填写尚未恢复-35 String pscnrth = obj.getPower_substation_cumulative_no_repair_three(); - WebElement pscnrthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div[2]/div/div/div[3]/table/tbody/tr/td[18]/div/div/div/input")); + WebElement pscnrthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[5" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[18]/div/div/div/input")); pscnrthEle.clear(); pscnrthEle.sendKeys(pscnrth); log.info("填写累计-尚未恢复-35kv----------"); @@ -1097,7 +1168,8 @@ public class DutyDailyOp { private void dailySchedule8(AnnexEightBean obj, DailyBean bean) throws InterruptedException { //填写因灾停运-特高压 String traou = obj.getTransmit_electricity_add_outage_uvh(); - WebElement traouEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); + WebElement traouEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); traouEle.clear(); traouEle.sendKeys(traou); log.info("填写新增-因灾停运-特高压----------"); @@ -1106,7 +1178,8 @@ public class DutyDailyOp { //填写因灾停运-500 String traof = obj.getTransmit_electricity_add_outage_five(); - WebElement traofEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); + WebElement traofEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); traofEle.clear(); traofEle.sendKeys(traof); log.info("填写新增-因灾停运-500kv----------"); @@ -1115,7 +1188,8 @@ public class DutyDailyOp { //填写因灾停运-300 String traot = obj.getTransmit_electricity_add_outage_two(); - WebElement traotEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); + WebElement traotEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); traotEle.clear(); traotEle.sendKeys(traot); log.info("填写新增-因灾停运-220/300kv----------"); @@ -1123,7 +1197,8 @@ public class DutyDailyOp { //填写因灾停运-100 String traoo = obj.getTransmit_electricity_add_outage_one(); - WebElement traooEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); + WebElement traooEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); traooEle.clear(); traooEle.sendKeys(traoo); log.info("填写新增-因灾停运-100/66kv----------"); @@ -1131,7 +1206,8 @@ public class DutyDailyOp { //填写因灾停运-35 String traoth = obj.getTransmit_electricity_add_outage_three(); - WebElement traothEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); + WebElement traothEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); traothEle.clear(); traothEle.sendKeys(traoth); log.info("填写新增-因灾停运-35kv----------"); @@ -1139,7 +1215,8 @@ public class DutyDailyOp { //填写因灾停运-10 String traote = obj.getTransmit_electricity_add_outage_ten(); - WebElement traoteEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); + WebElement traoteEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); traoteEle.clear(); traoteEle.sendKeys(traote); log.info("填写新增-因灾停运-10kv----------"); @@ -1148,7 +1225,8 @@ public class DutyDailyOp { //填写抢修恢复-特高压 String traru = obj.getTransmit_electricity_add_repair_uvh(); - WebElement traruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); + WebElement traruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); traruEle.clear(); traruEle.sendKeys(traru); log.info("填写新增-抢修恢复-特高压----------"); @@ -1156,7 +1234,8 @@ public class DutyDailyOp { //填写抢修恢复-500 String trarf = obj.getTransmit_electricity_add_repair_five(); - WebElement trarfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); + WebElement trarfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); trarfEle.clear(); trarfEle.sendKeys(trarf); log.info("填写新增-抢修恢复-500kv----------"); @@ -1164,7 +1243,8 @@ public class DutyDailyOp { //填写抢修恢复-220/300 String trart = obj.getTransmit_electricity_add_repair_two(); - WebElement trartEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input")); + WebElement trartEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input")); trartEle.clear(); trartEle.sendKeys(trart); log.info("填写新增-抢修恢复-220/300kv----------"); @@ -1172,7 +1252,8 @@ public class DutyDailyOp { //填写抢修恢复-100 String traro = obj.getTransmit_electricity_add_repair_one(); - WebElement traroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[13]/div/div/div/input")); + WebElement traroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[13]/div/div/div/input")); traroEle.clear(); traroEle.sendKeys(traro); log.info("填写新增-抢修恢复-100/66kv----------"); @@ -1180,7 +1261,8 @@ public class DutyDailyOp { //填写抢修恢复-35 String trarth = obj.getTransmit_electricity_add_repair_three(); - WebElement trarthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[14]/div/div/div/input")); + WebElement trarthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[14]/div/div/div/input")); trarthEle.clear(); trarthEle.sendKeys(trarth); log.info("填写新增-抢修恢复-35kv----------"); @@ -1188,7 +1270,8 @@ public class DutyDailyOp { //填写抢修恢复-10 String trarte = obj.getTransmit_electricity_add_repair_ten(); - WebElement trarteEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[15]/div/div/div/input")); + WebElement trarteEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[15]/div/div/div/input")); trarteEle.clear(); trarteEle.sendKeys(trarte); log.info("填写新增-抢修恢复-10kv----------"); @@ -1196,7 +1279,8 @@ public class DutyDailyOp { //填写尚未恢复-特高压 String tranru = obj.getTransmit_electricity_add_no_repair_uvh(); - WebElement tranruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[16]/div/div/div/input")); + WebElement tranruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[16]/div/div/div/input")); tranruEle.clear(); tranruEle.sendKeys(tranru); log.info("填写新增-尚未恢复-特高压----------"); @@ -1204,7 +1288,8 @@ public class DutyDailyOp { //填写尚未恢复-500 String tranrf = obj.getTransmit_electricity_add_no_repair_five(); - WebElement tranrfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[17]/div/div/div/input")); + WebElement tranrfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[17]/div/div/div/input")); tranrfEle.clear(); tranrfEle.sendKeys(tranrf); log.info("填写新增-尚未恢复-500kv----------"); @@ -1212,7 +1297,8 @@ public class DutyDailyOp { //填写尚未恢复-220/300 String tranrt = obj.getTransmit_electricity_add_no_repair_two(); - WebElement tranrtEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[18]/div/div/div/input")); + WebElement tranrtEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[18]/div/div/div/input")); tranrtEle.clear(); tranrtEle.sendKeys(tranrt); log.info("填写新增-尚未恢复-220/300kv----------"); @@ -1220,7 +1306,8 @@ public class DutyDailyOp { //填写尚未恢复-100 String tranro = obj.getTransmit_electricity_add_no_repair_one(); - WebElement tranroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[19]/div/div/div/input")); + WebElement tranroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[19]/div/div/div/input")); tranroEle.clear(); tranroEle.sendKeys(tranro); log.info("填写新增-尚未恢复-100/66kv----------"); @@ -1228,7 +1315,8 @@ public class DutyDailyOp { //填写尚未恢复-35 String tranrth = obj.getTransmit_electricity_add_no_repair_three(); - WebElement tranrthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[20]/div/div/div/input")); + WebElement tranrthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[20]/div/div/div/input")); tranrthEle.clear(); tranrthEle.sendKeys(tranrth); log.info("填写新增-尚未恢复-35kv----------"); @@ -1236,7 +1324,8 @@ public class DutyDailyOp { //填写尚未恢复-10 String tranrte = obj.getTransmit_electricity_add_no_repair_ten(); - WebElement tranrteEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div[2]/div/div/div[3]/table/tbody/tr/td[21]/div/div/div/input")); + WebElement tranrteEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[6" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[21]/div/div/div/input")); tranrteEle.clear(); tranrteEle.sendKeys(tranrte); log.info("填写新增-尚未恢复-10kv----------"); @@ -1244,7 +1333,8 @@ public class DutyDailyOp { //填写因灾停运-特高压 String trcou = obj.getTransmit_electricity_cumulative_outage_uvh(); - WebElement trcouEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); + WebElement trcouEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); trcouEle.clear(); trcouEle.sendKeys(trcou); log.info("填写累计-因灾停运-特高压----------"); @@ -1253,7 +1343,8 @@ public class DutyDailyOp { //填写因灾停运-500 String trcof = obj.getTransmit_electricity_cumulative_outage_five(); - WebElement trcofEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); + WebElement trcofEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); trcofEle.clear(); trcofEle.sendKeys(trcof); log.info("填写累计-因灾停运-500kv----------"); @@ -1262,7 +1353,8 @@ public class DutyDailyOp { //填写因灾停运-300 String trcot = obj.getTransmit_electricity_cumulative_outage_two(); - WebElement trcotEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); + WebElement trcotEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); trcotEle.clear(); trcotEle.sendKeys(trcot); log.info("填写累计-因灾停运-220/300kv----------"); @@ -1270,7 +1362,8 @@ public class DutyDailyOp { //填写因灾停运-100 String trcoo = obj.getTransmit_electricity_cumulative_outage_one(); - WebElement trcooEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); + WebElement trcooEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); trcooEle.clear(); trcooEle.sendKeys(trcoo); log.info("填写累计-因灾停运-100/66kv----------"); @@ -1278,7 +1371,8 @@ public class DutyDailyOp { //填写因灾停运-35 String trcoth = obj.getTransmit_electricity_cumulative_outage_three(); - WebElement trcothEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); + WebElement trcothEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); trcothEle.clear(); trcothEle.sendKeys(trcoth); log.info("填写累计-因灾停运-35kv----------"); @@ -1286,7 +1380,8 @@ public class DutyDailyOp { //填写因灾停运-10 String trcote = obj.getTransmit_electricity_cumulative_outage_ten(); - WebElement trcoteEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); + WebElement trcoteEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); trcoteEle.clear(); trcoteEle.sendKeys(trcote); log.info("填写累计-因灾停运-35kv----------"); @@ -1294,7 +1389,8 @@ public class DutyDailyOp { //填写抢修恢复-特高压 String trcru = obj.getTransmit_electricity_cumulative_repair_uvh(); - WebElement trcruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); + WebElement trcruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); trcruEle.clear(); trcruEle.sendKeys(trcru); log.info("填写累计-抢修恢复-特高压----------"); @@ -1302,7 +1398,8 @@ public class DutyDailyOp { //填写抢修恢复-500 String trcrf = obj.getTransmit_electricity_cumulative_repair_five(); - WebElement trcrfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); + WebElement trcrfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); trcrfEle.clear(); trcrfEle.sendKeys(trcrf); log.info("填写累计-抢修恢复-500kv----------"); @@ -1310,7 +1407,8 @@ public class DutyDailyOp { //填写抢修恢复-220/300 String trcrt = obj.getTransmit_electricity_cumulative_repair_two(); - WebElement trcrtEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input")); + WebElement trcrtEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input")); trcrtEle.clear(); trcrtEle.sendKeys(trcrt); log.info("填写累计-抢修恢复-220/300kv----------"); @@ -1318,7 +1416,8 @@ public class DutyDailyOp { //填写抢修恢复-100 String trcro = obj.getTransmit_electricity_cumulative_repair_one(); - WebElement trcroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[13]/div/div/div/input")); + WebElement trcroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[13]/div/div/div/input")); trcroEle.clear(); trcroEle.sendKeys(trcro); log.info("填写累计-抢修恢复-100/66kv----------"); @@ -1326,7 +1425,8 @@ public class DutyDailyOp { //填写抢修恢复-35 String trcrth = obj.getTransmit_electricity_cumulative_repair_three(); - WebElement trcrthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[14]/div/div/div/input")); + WebElement trcrthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[14]/div/div/div/input")); trcrthEle.clear(); trcrthEle.sendKeys(trcrth); log.info("填写累计-抢修恢复-35kv----------"); @@ -1334,7 +1434,8 @@ public class DutyDailyOp { //填写抢修恢复-10 String trcrte = obj.getTransmit_electricity_cumulative_repair_ten(); - WebElement trcrteEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[15]/div/div/div/input")); + WebElement trcrteEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[15]/div/div/div/input")); trcrteEle.clear(); trcrteEle.sendKeys(trcrte); log.info("填写累计-抢修恢复-10kv----------"); @@ -1342,7 +1443,8 @@ public class DutyDailyOp { //填写尚未恢复-特高压 String trcnru = obj.getTransmit_electricity_cumulative_no_repair_uvh(); - WebElement trcnruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[16]/div/div/div/input")); + WebElement trcnruEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[16]/div/div/div/input")); trcnruEle.clear(); trcnruEle.sendKeys(trcnru); log.info("填写累计-尚未恢复-特高压----------"); @@ -1350,7 +1452,8 @@ public class DutyDailyOp { //填写尚未恢复-500 String trcnrf = obj.getTransmit_electricity_cumulative_no_repair_five(); - WebElement trcnrfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[17]/div/div/div/input")); + WebElement trcnrfEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[17]/div/div/div/input")); trcnrfEle.clear(); trcnrfEle.sendKeys(trcnrf); log.info("填写累计-尚未恢复-500kv----------"); @@ -1358,7 +1461,8 @@ public class DutyDailyOp { //填写尚未恢复-220/300 String trcnrt = obj.getTransmit_electricity_cumulative_no_repair_two(); - WebElement trcnrtEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[18]/div/div/div/input")); + WebElement trcnrtEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[18]/div/div/div/input")); trcnrtEle.clear(); trcnrtEle.sendKeys(trcnrt); log.info("填写累计-尚未恢复-220/300kv----------"); @@ -1366,7 +1470,8 @@ public class DutyDailyOp { //填写尚未恢复-100 String trcnro = obj.getTransmit_electricity_cumulative_no_repair_one(); - WebElement trcnroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[19]/div/div/div/input")); + WebElement trcnroEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[19]/div/div/div/input")); trcnroEle.clear(); trcnroEle.sendKeys(trcnro); log.info("填写累计-尚未恢复-100/66kv----------"); @@ -1374,7 +1479,8 @@ public class DutyDailyOp { //填写尚未恢复-35 String trcnrth = obj.getTransmit_electricity_cumulative_no_repair_three(); - WebElement trcnrthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[20]/div/div/div/input")); + WebElement trcnrthEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[20]/div/div/div/input")); trcnrthEle.clear(); trcnrthEle.sendKeys(trcnrth); log.info("填写累计-尚未恢复-35kv----------"); @@ -1382,7 +1488,8 @@ public class DutyDailyOp { //填写尚未恢复-10 String trcnrte = obj.getTransmit_electricity_cumulative_no_repair_ten(); - WebElement trcnrteEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[21]/div/div/div/input")); + WebElement trcnrteEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[7" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[21]/div/div/div/input")); trcnrteEle.clear(); trcnrteEle.sendKeys(trcnrte); log.info("填写累计-尚未恢复-10kv----------"); @@ -1395,7 +1502,8 @@ public class DutyDailyOp { //因灾停电-台区 String abtd = obj.getAdd_blackout_tai_district(); - WebElement abtdEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); + WebElement abtdEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8" + + "]/div/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); abtdEle.clear(); abtdEle.sendKeys(abtd); log.info("填写新增-因灾停电-台区----------"); @@ -1403,7 +1511,8 @@ public class DutyDailyOp { //因灾停电-用户 String abtu = obj.getAdd_blackout_user(); - WebElement abtuEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); + WebElement abtuEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8" + + "]/div/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); abtuEle.clear(); abtuEle.sendKeys(abtu); log.info("填写新增-因灾停电-用户----------"); @@ -1411,7 +1520,8 @@ public class DutyDailyOp { //抢修恢复-台区 String artd = obj.getAdd_repair_tai_district(); - WebElement artdEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); + WebElement artdEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8" + + "]/div/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); artdEle.clear(); artdEle.sendKeys(artd); log.info("填写新增-抢修恢复-台区----------"); @@ -1419,7 +1529,8 @@ public class DutyDailyOp { //抢修恢复-用户 String artu = obj.getAdd_repair_user(); - WebElement artuEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); + WebElement artuEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8" + + "]/div/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); artuEle.clear(); artuEle.sendKeys(artu); log.info("填写新增-抢修恢复-用户----------"); @@ -1427,7 +1538,8 @@ public class DutyDailyOp { //尚未恢复-台区 String anrtd = obj.getAdd_no_repair_tai_district(); - WebElement anrtdEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); + WebElement anrtdEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8" + + "]/div/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); anrtdEle.clear(); anrtdEle.sendKeys(anrtd); log.info("填写新增-尚未恢复-台区----------"); @@ -1435,7 +1547,8 @@ public class DutyDailyOp { //尚未恢复-用户 String anrtu = obj.getAdd_no_repair_user(); - WebElement anrtuEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); + WebElement anrtuEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8" + + "]/div/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); anrtuEle.clear(); anrtuEle.sendKeys(anrtu); log.info("填写新增-尚未恢复-用户----------"); @@ -1443,7 +1556,8 @@ public class DutyDailyOp { //出动抢修力量-用户 String app = obj.getAdd_power_personnel(); - WebElement appEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); + WebElement appEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div" + + "/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); appEle.clear(); appEle.sendKeys(app); log.info("填写新增-出动抢修力量-台区----------"); @@ -1451,7 +1565,8 @@ public class DutyDailyOp { //出动抢修力量-车辆 String apv = obj.getAdd_power_vehicle(); - WebElement apvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); + WebElement apvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[8]/div" + + "/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); apvEle.clear(); apvEle.sendKeys(apv); log.info("填写新增-出动抢修力量-用户----------"); @@ -1460,7 +1575,8 @@ public class DutyDailyOp { //因灾停电-台区 String cbtd = obj.getCumulative_blackout_tai_district(); - WebElement cbtdEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); + WebElement cbtdEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); cbtdEle.clear(); cbtdEle.sendKeys(cbtd); log.info("填写累计-因灾停电-台区----------"); @@ -1468,7 +1584,8 @@ public class DutyDailyOp { //因灾停电-用户 String cbtu = obj.getCumulative_blackout_user(); - WebElement cbtuEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); + WebElement cbtuEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); cbtuEle.clear(); cbtuEle.sendKeys(cbtu); log.info("填写累计-因灾停电-用户----------"); @@ -1476,7 +1593,8 @@ public class DutyDailyOp { //抢修恢复-台区 String crtd = obj.getCumulative_repair_tai_district(); - WebElement crtdEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); + WebElement crtdEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); crtdEle.clear(); crtdEle.sendKeys(crtd); log.info("填写累计-抢修恢复-台区----------"); @@ -1484,7 +1602,8 @@ public class DutyDailyOp { //抢修恢复-用户 String crtu = obj.getCumulative_repair_user(); - WebElement crtuEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); + WebElement crtuEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); crtuEle.clear(); crtuEle.sendKeys(crtu); log.info("填写累计-抢修恢复-用户----------"); @@ -1492,7 +1611,8 @@ public class DutyDailyOp { //尚未恢复-台区 String cnrtd = obj.getCumulative_no_repair_tai_district(); - WebElement cnrtdEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); + WebElement cnrtdEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); cnrtdEle.clear(); cnrtdEle.sendKeys(cnrtd); log.info("填写累计-尚未恢复-台区----------"); @@ -1500,7 +1620,8 @@ public class DutyDailyOp { //尚未恢复-用户 String cnrtu = obj.getCumulative_no_repair_user(); - WebElement cnrtuEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); + WebElement cnrtuEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9" + + "]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); cnrtuEle.clear(); cnrtuEle.sendKeys(cnrtu); log.info("填写累计-尚未恢复-用户----------"); @@ -1508,7 +1629,8 @@ public class DutyDailyOp { //出动抢修力量-用户 String cpp = obj.getCumulative_power_personnel(); - WebElement cppEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); + WebElement cppEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div" + + "[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); cppEle.clear(); cppEle.sendKeys(cpp); log.info("填写累计-出动抢修力量-台区----------"); @@ -1516,7 +1638,8 @@ public class DutyDailyOp { //出动抢修力量-车辆 String cpv = obj.getCumulative_power_vehicle(); - WebElement cpvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); + WebElement cpvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[9]/div" + + "[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); cpvEle.clear(); cpvEle.sendKeys(cpv); log.info("填写累计-出动抢修力量-用户----------"); @@ -1526,14 +1649,16 @@ public class DutyDailyOp { private void dailySchedule10(AnnexTenBean obj, DailyBean bean) throws InterruptedException { - WebElement kaiguanEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[1]/div/div/div")); + WebElement kaiguanEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[10" + + "]/div[1]/div/div/div")); String className = kaiguanEle.getAttribute("class"); if ("el-switch".equals(className)) { log.info("附表十未开启,跳过"); } else { //填写特高压 String tenUhvNum = obj.getUhv(); - WebElement tenUhvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); + WebElement tenUhvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div" + + "[10]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); tenUhvEle.clear(); tenUhvEle.sendKeys(tenUhvNum); log.info("填写特高压----------"); @@ -1541,7 +1666,8 @@ public class DutyDailyOp { //填写500k String tenFiveHundredKvNum = obj.getFiveHundredKv(); - WebElement tenFiveHundredKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); + WebElement tenFiveHundredKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div" + + "[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); tenFiveHundredKvNumEle.clear(); tenFiveHundredKvNumEle.sendKeys(tenFiveHundredKvNum); log.info("填写500k----------"); @@ -1549,7 +1675,8 @@ public class DutyDailyOp { //填写220/330kV String tenTwoHundredTwentyKvNum = obj.getTwoHundredTwentyKv(); - WebElement tenTwoHundredTwentyKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); + WebElement tenTwoHundredTwentyKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div" + + "/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); tenTwoHundredTwentyKvNumEle.clear(); tenTwoHundredTwentyKvNumEle.sendKeys(tenTwoHundredTwentyKvNum); log.info("填写220/330kV---------"); @@ -1558,7 +1685,8 @@ public class DutyDailyOp { //填写110/66kV String tenOneHundredTenKvNum = obj.getOneHundredTenKv(); - WebElement tenOneHundredTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); + WebElement tenOneHundredTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div" + + "/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); tenOneHundredTenKvNumEle.clear(); tenOneHundredTenKvNumEle.sendKeys(tenOneHundredTenKvNum); log.info("填写110/66kV---------"); @@ -1567,42 +1695,48 @@ public class DutyDailyOp { //填写35kV String tenThirtyFiveKvNum = obj.getThirtyFiveKv(); - WebElement tenThirtyFiveKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); + WebElement tenThirtyFiveKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4" + + "]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); tenThirtyFiveKvNumEle.clear(); tenThirtyFiveKvNumEle.sendKeys(tenThirtyFiveKvNum); log.info("填写35kV----------"); //填写10kV String tenTenKvNum = obj.getTenKv(); - WebElement tenTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); + WebElement tenTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1" + + "]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); tenTenKvNumEle.clear(); tenTenKvNumEle.sendKeys(tenTenKvNum); log.info("填写10kV---------"); //填写平均覆冰 String tenAverageWaterLevelNum = obj.getAverageWaterLevel(); - WebElement tenAverageWaterLevelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); + WebElement tenAverageWaterLevelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div" + + "/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); tenAverageWaterLevelNumEle.clear(); tenAverageWaterLevelNumEle.sendKeys(tenAverageWaterLevelNum); log.info("填写平均覆冰---------"); //填写最大覆冰-实际值 String tenMeasuredValueNum = obj.getMeasuredValue(); - WebElement tenMeasuredValueNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); + WebElement tenMeasuredValueNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div" + + "[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); tenMeasuredValueNumEle.clear(); tenMeasuredValueNumEle.sendKeys(tenMeasuredValueNum); log.info("填写最大覆冰-实际值---------"); //填写最大覆冰-设计值 String tenDesignValuesNum = obj.getDesignValues(); - WebElement tenDesignValuesNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input")); + WebElement tenDesignValuesNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4" + + "]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input")); tenDesignValuesNumEle.clear(); tenDesignValuesNumEle.sendKeys(tenDesignValuesNum); log.info("填写最大覆冰-设计值---------"); //填写已采取措施行动 String tenActionHasBeenTaken = obj.getActionHasBeenTaken(); - WebElement tenActionHasBeenTakenEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[13]/div/div/input")); + WebElement tenActionHasBeenTakenEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div" + + "/div[4]/div[1]/div[10]/div[2]/div/div/div[3]/table/tbody/tr/td[13]/div/div/input")); tenActionHasBeenTakenEle.clear(); tenActionHasBeenTakenEle.sendKeys(tenActionHasBeenTaken); log.info("填写已采取措施行动----------"); @@ -1615,14 +1749,16 @@ public class DutyDailyOp { private void dailySchedule11(AnnexElevenBean obj, DailyBean bean) throws InterruptedException { try{ - WebElement kaiguanEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[14]/div[1]/div/div/div")); + WebElement kaiguanEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1" + + "]/div[11]/div[1]/div/div/div")); String className = kaiguanEle.getAttribute("class"); if ("el-switch".equals(className)) { log.info("附表十一未开启,跳过"); } else { //填写线路电压等级 String elevenUhvNum = obj.getUhv(); - WebElement elevenUhvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[14]/div/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); + WebElement elevenUhvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div" + + "[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); elevenUhvEle.clear(); elevenUhvEle.sendKeys(elevenUhvNum); log.info("填写线路电压等级----------"); @@ -1630,7 +1766,8 @@ public class DutyDailyOp { //填写线路名称 String elevenFiveHundredKvNum = obj.getFiveHundredKv(); - WebElement elevenFiveHundredKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[14]/div/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/input")); + WebElement elevenFiveHundredKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section" + + "/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/input")); elevenFiveHundredKvNumEle.clear(); elevenFiveHundredKvNumEle.sendKeys(elevenFiveHundredKvNum); log.info("填写线路名称----------"); @@ -1638,7 +1775,8 @@ public class DutyDailyOp { //填写起始杆塔号 String elevenTwoHundredTwentyKvNum = obj.getTwoHundredTwentyKv(); - WebElement elevenTwoHundredTwentyKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[14]/div/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/input")); + WebElement elevenTwoHundredTwentyKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div" + + "/section/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/input")); elevenTwoHundredTwentyKvNumEle.clear(); elevenTwoHundredTwentyKvNumEle.sendKeys(elevenTwoHundredTwentyKvNum); log.info("填写起始杆塔号---------"); @@ -1647,7 +1785,8 @@ public class DutyDailyOp { //填写结束杆塔号 String elevenOneHundredTenKvNum = obj.getOneHundredTenKv(); - WebElement elevenOneHundredTenKvNumNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[14]/div/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/input")); + WebElement elevenOneHundredTenKvNumNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div" + + "/section/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/input")); elevenOneHundredTenKvNumNumEle.clear(); elevenOneHundredTenKvNumNumEle.sendKeys(elevenOneHundredTenKvNum); log.info("填写结束杆塔号---------"); @@ -1656,35 +1795,41 @@ public class DutyDailyOp { //填写覆冰厚度 String elevenThirtyFiveKvNum = obj.getThirtyFiveKv(); - WebElement elevenThirtyFiveKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[14]/div/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); + WebElement elevenThirtyFiveKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section" + + "/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); elevenThirtyFiveKvNumEle.clear(); elevenThirtyFiveKvNumEle.sendKeys(elevenThirtyFiveKvNum); log.info("填写覆冰厚度---------"); //填写设计覆冰厚度 String elevenTenKvNum = obj.getTenKv(); - WebElement elevenTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[14]/div/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); + WebElement elevenTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4" + + "]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); elevenTenKvNumEle.clear(); elevenTenKvNumEle.sendKeys(elevenTenKvNum); log.info("填写设计覆冰厚度---------"); //填写采取措施冰厚 String elevenAverageWaterLevelNum = obj.getAverageWaterLevel(); - WebElement elevenAverageWaterLevelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[14]/div/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); + WebElement elevenAverageWaterLevelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div" + + "/section/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div" + + "/input")); elevenAverageWaterLevelNumEle.clear(); elevenAverageWaterLevelNumEle.sendKeys(elevenAverageWaterLevelNum); log.info("填写采取措施冰厚---------"); //填写可供使用抗冰装备 String elevenMeasuredValueNum = obj.getMeasuredValue(); - WebElement elevenMeasuredValueNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[14]/div/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/input")); + WebElement elevenMeasuredValueNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section" + + "/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/input")); elevenMeasuredValueNumEle.clear(); elevenMeasuredValueNumEle.sendKeys(elevenMeasuredValueNum); log.info("填写可供使用抗冰装备---------"); //填写已采取措施行动 String elevenActionHasBeenTaken = obj.getActionHasBeenTaken(); - WebElement elevenActionHasBeenTakenEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[14]/div/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/input")); + WebElement elevenActionHasBeenTakenEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section" + + "/div/div[4]/div[1]/div[11]/div/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/input")); elevenActionHasBeenTakenEle.clear(); elevenActionHasBeenTakenEle.sendKeys(elevenActionHasBeenTaken); log.info("填写已采取措施行动----------"); @@ -1700,14 +1845,16 @@ public class DutyDailyOp { //操作附表12 private void dailySchedule12(AnnexTwelveBean obj, DailyBean bean) throws InterruptedException { try { - WebElement kaiguanEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[1]/div/div/div")); + WebElement kaiguanEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1" + + "]/div[12]/div[1]/div/div/div")); String className = kaiguanEle.getAttribute("class"); if ("el-switch".equals(className)) { log.info("附表十二未开启,跳过"); } else { //填写特高压 String twelveUhvNum = obj.getUhv(); - WebElement twelveUhvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/div/input")); + WebElement twelveUhvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div" + + "[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/div/input")); twelveUhvEle.clear(); twelveUhvEle.sendKeys(twelveUhvNum); log.info("填写特高压----------"); @@ -1715,7 +1862,8 @@ public class DutyDailyOp { //填写500k String twelveFiveHundredKvNum = obj.getFiveHundredKv(); - WebElement twelveFiveHundredKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); + WebElement twelveFiveHundredKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section" + + "/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); twelveFiveHundredKvNumEle.clear(); twelveFiveHundredKvNumEle.sendKeys(twelveFiveHundredKvNum); log.info("填写500k----------"); @@ -1723,7 +1871,8 @@ public class DutyDailyOp { //填写220/330kV String twelveTwoHundredTwentyKvNum = obj.getTwoHundredTwentyKv(); - WebElement twelveTwoHundredTwentyKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); + WebElement twelveTwoHundredTwentyKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div" + + "/section/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); twelveTwoHundredTwentyKvNumEle.clear(); twelveTwoHundredTwentyKvNumEle.sendKeys(twelveTwoHundredTwentyKvNum); log.info("填写220/330kV---------"); @@ -1732,7 +1881,8 @@ public class DutyDailyOp { //填写110/66kV String twelveOneHundredTenKvNum = obj.getOneHundredTenKv(); - WebElement twelveOneHundredTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); + WebElement twelveOneHundredTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section" + + "/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); twelveOneHundredTenKvNumEle.clear(); twelveOneHundredTenKvNumEle.sendKeys(twelveOneHundredTenKvNum); log.info("填写110/66kV---------"); @@ -1741,42 +1891,48 @@ public class DutyDailyOp { //填写35kV String twelveThirtyFiveKvNum = obj.getThirtyFiveKv(); - WebElement twelveThirtyFiveKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); + WebElement twelveThirtyFiveKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section" + + "/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); twelveThirtyFiveKvNumEle.clear(); twelveThirtyFiveKvNumEle.sendKeys(twelveThirtyFiveKvNum); log.info("填写35kV----------"); //填写10kV String twelveTenKvNum = obj.getTenKv(); - WebElement twelveTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); + WebElement twelveTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4" + + "]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); twelveTenKvNumEle.clear(); twelveTenKvNumEle.sendKeys(twelveTenKvNum); log.info("填写10kV---------"); //填写平均水位 String twelveAverageWaterLevelNum = obj.getAverageWaterLevel(); - WebElement twelveAverageWaterLevelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); + WebElement twelveAverageWaterLevelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div" + + "/section/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); twelveAverageWaterLevelNumEle.clear(); twelveAverageWaterLevelNumEle.sendKeys(twelveAverageWaterLevelNum); log.info("填写平均水位---------"); //填写最大水位-实际值 String twelveMeasuredValueNum = obj.getMeasuredValue(); - WebElement twelveMeasuredValueNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); + WebElement twelveMeasuredValueNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section" + + "/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); twelveMeasuredValueNumEle.clear(); twelveMeasuredValueNumEle.sendKeys(twelveMeasuredValueNum); log.info("填写最大水位-实际值---------"); //填写最大水位-设计值 String twelveDesignValuesNum = obj.getDesignValues(); - WebElement twelveDesignValuesNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); + WebElement twelveDesignValuesNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section" + + "/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); twelveDesignValuesNumEle.clear(); twelveDesignValuesNumEle.sendKeys(twelveDesignValuesNum); log.info("填写最大水位-设计值---------"); //填写已采取措施行动 String twelveActionHasBeenTaken = obj.getActionHasBeenTaken(); - WebElement twelveActionHasBeenTakenEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[15]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input")); + WebElement twelveActionHasBeenTakenEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section" + + "/div/div[4]/div[1]/div[12]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input")); twelveActionHasBeenTakenEle.clear(); twelveActionHasBeenTakenEle.sendKeys(twelveActionHasBeenTaken); log.info("填写已采取措施行动----------"); @@ -1792,14 +1948,16 @@ public class DutyDailyOp { //操作附表13 private void dailySchedule13(AnnexThirteenBean obj, DailyBean bean) throws InterruptedException { try{ - WebElement kaiguanEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div/div[1]/div/div/div")); + WebElement kaiguanEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1" + + "]/div[13]/div/div[1]/div/div/div")); String className = kaiguanEle.getAttribute("class"); if ("el-switch".equals(className)) { log.info("附表十三未开启,跳过"); } else { //填写特高压 String thirteenUhvNum = obj.getUhv(); - WebElement thirteenUhvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/div/input")); + WebElement thirteenUhvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4" + + "]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/div/input")); thirteenUhvEle.clear(); thirteenUhvEle.sendKeys(thirteenUhvNum); log.info("填写特高压----------"); @@ -1807,7 +1965,8 @@ public class DutyDailyOp { //填写500k String thirteenFiveHundredKvNum = obj.getFiveHundredKv(); - WebElement thirteenFiveHundredKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); + WebElement thirteenFiveHundredKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section" + + "/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); thirteenFiveHundredKvNumEle.clear(); thirteenFiveHundredKvNumEle.sendKeys(thirteenFiveHundredKvNum); log.info("填写500k----------"); @@ -1815,7 +1974,8 @@ public class DutyDailyOp { //填写220/330kV String thirteenTwoHundredTwentyKvNum = obj.getTwoHundredTwentyKv(); - WebElement thirteenTwoHundredTwentyKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); + WebElement thirteenTwoHundredTwentyKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div" + + "/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); thirteenTwoHundredTwentyKvNumEle.clear(); thirteenTwoHundredTwentyKvNumEle.sendKeys(thirteenTwoHundredTwentyKvNum); log.info("填写220/330kV---------"); @@ -1824,7 +1984,8 @@ public class DutyDailyOp { //填写110/66kV String thirteenOneHundredTenKvNum = obj.getOneHundredTenKv(); - WebElement thirteenOneHundredTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); + WebElement thirteenOneHundredTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div" + + "/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); thirteenOneHundredTenKvNumEle.clear(); thirteenOneHundredTenKvNumEle.sendKeys(thirteenOneHundredTenKvNum); log.info("填写110/66kV---------"); @@ -1833,42 +1994,48 @@ public class DutyDailyOp { //填写35kV String thirteenThirtyFiveKvNum = obj.getThirtyFiveKv(); - WebElement thirteenThirtyFiveKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); + WebElement thirteenThirtyFiveKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section" + + "/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); thirteenThirtyFiveKvNumEle.clear(); thirteenThirtyFiveKvNumEle.sendKeys(thirteenThirtyFiveKvNum); log.info("填写35kV----------"); //填写10kV String thirteenTenKvNum = obj.getTenKv(); - WebElement thirteenTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); + WebElement thirteenTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div" + + "[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); thirteenTenKvNumEle.clear(); thirteenTenKvNumEle.sendKeys(thirteenTenKvNum); log.info("填写10kV---------"); //填写平均水位 String thirteenAverageWaterLevelNum = obj.getAverageWaterLevel(); - WebElement thirteenAverageWaterLevelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); + WebElement thirteenAverageWaterLevelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div" + + "/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); thirteenAverageWaterLevelNumEle.clear(); thirteenAverageWaterLevelNumEle.sendKeys(thirteenAverageWaterLevelNum); log.info("填写平均水位---------"); //填写最大水位-实际值 String thirteenMeasuredValueNum = obj.getMeasuredValue(); - WebElement thirteenMeasuredValueNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); + WebElement thirteenMeasuredValueNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section" + + "/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); thirteenMeasuredValueNumEle.clear(); thirteenMeasuredValueNumEle.sendKeys(thirteenMeasuredValueNum); log.info("填写最大水位-实际值---------"); //填写最大水位-设计值 String thirteenDesignValuesNum = obj.getDesignValues(); - WebElement thirteenDesignValuesNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); + WebElement thirteenDesignValuesNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section" + + "/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); thirteenDesignValuesNumEle.clear(); thirteenDesignValuesNumEle.sendKeys(thirteenDesignValuesNum); log.info("填写最大水位-设计值---------"); //填写已采取措施行动 String thirteenActionHasBeenTaken = obj.getActionHasBeenTaken(); - WebElement thirteenActionHasBeenTakenEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input")); + WebElement thirteenActionHasBeenTakenEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div" + + "/section/div/div[4]/div[1]/div[13]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/div/input")); thirteenActionHasBeenTakenEle.clear(); thirteenActionHasBeenTakenEle.sendKeys(thirteenActionHasBeenTaken); log.info("填写已采取措施行动----------"); @@ -1885,7 +2052,8 @@ public class DutyDailyOp { try { //填写特高压 String fourteenUhvNum = obj.getUhv(); - WebElement fourteenUhvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[17]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/div/input")); + WebElement fourteenUhvEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1" + + "]/div[14]/div[2]/div/div/div[3]/table/tbody/tr/td[3]/div/div/div/input")); fourteenUhvEle.clear(); fourteenUhvEle.sendKeys(fourteenUhvNum); log.info("填写特高压----------"); @@ -1893,7 +2061,8 @@ public class DutyDailyOp { //填写500k String fourteenFiveHundredKvNum = obj.getFiveHundredKv(); - WebElement fourteenFiveHundredKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[17]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); + WebElement fourteenFiveHundredKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div" + + "/div[4]/div[1]/div[14]/div[2]/div/div/div[3]/table/tbody/tr/td[4]/div/div/div/input")); fourteenFiveHundredKvNumEle.clear(); fourteenFiveHundredKvNumEle.sendKeys(fourteenFiveHundredKvNum); log.info("填写500k----------"); @@ -1901,7 +2070,8 @@ public class DutyDailyOp { //填写220/330kV String fourteenTwoHundredTwentyKvNum = obj.getTwoHundredTwentyKv(); - WebElement fourteenTwoHundredTwentyKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[17]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); + WebElement fourteenTwoHundredTwentyKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div" + + "/section/div/div[4]/div[1]/div[14]/div[2]/div/div/div[3]/table/tbody/tr/td[5]/div/div/div/input")); fourteenTwoHundredTwentyKvNumEle.clear(); fourteenTwoHundredTwentyKvNumEle.sendKeys(fourteenTwoHundredTwentyKvNum); log.info("填写220/330kV---------"); @@ -1910,7 +2080,8 @@ public class DutyDailyOp { //填写110/66kV String fourteenOneHundredTenKvNum = obj.getOneHundredTenKv(); - WebElement fourteenOneHundredTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[17]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); + WebElement fourteenOneHundredTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section" + + "/div/div[4]/div[1]/div[14]/div[2]/div/div/div[3]/table/tbody/tr/td[6]/div/div/div/input")); fourteenOneHundredTenKvNumEle.clear(); fourteenOneHundredTenKvNumEle.sendKeys(fourteenOneHundredTenKvNum); log.info("填写110/66kV---------"); @@ -1919,42 +2090,48 @@ public class DutyDailyOp { //填写35kV String fourteenThirtyFiveKvNum = obj.getThirtyFiveKv(); - WebElement fourteenThirtyFiveKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[17]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); + WebElement fourteenThirtyFiveKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div" + + "/div[4]/div[1]/div[14]/div[2]/div/div/div[3]/table/tbody/tr/td[7]/div/div/div/input")); fourteenThirtyFiveKvNumEle.clear(); fourteenThirtyFiveKvNumEle.sendKeys(fourteenThirtyFiveKvNum); log.info("填写35kV----------"); //填写10kV String fourteenTenKvNum = obj.getTenKv(); - WebElement fourteenTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[17]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); + WebElement fourteenTenKvNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4" + + "]/div[1]/div[14]/div[2]/div/div/div[3]/table/tbody/tr/td[8]/div/div/div/input")); fourteenTenKvNumEle.clear(); fourteenTenKvNumEle.sendKeys(fourteenTenKvNum); log.info("填写10kV---------"); //填写平均水位 String fourteenAverageWaterLevelNum = obj.getAverageWaterLevel(); - WebElement fourteenAverageWaterLevelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[17]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); + WebElement fourteenAverageWaterLevelNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section" + + "/div/div[4]/div[1]/div[14]/div[2]/div/div/div[3]/table/tbody/tr/td[9]/div/div/div/input")); fourteenAverageWaterLevelNumEle.clear(); fourteenAverageWaterLevelNumEle.sendKeys(fourteenAverageWaterLevelNum); log.info("填写平均水位---------"); //填写最大水位-实际值 String fourteenMeasuredValueNum = obj.getMeasuredValue(); - WebElement fourteenMeasuredValueNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[17]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); + WebElement fourteenMeasuredValueNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div" + + "/div[4]/div[1]/div[14]/div[2]/div/div/div[3]/table/tbody/tr/td[10]/div/div/div/input")); fourteenMeasuredValueNumEle.clear(); fourteenMeasuredValueNumEle.sendKeys(fourteenMeasuredValueNum); log.info("填写最大水位-实际值---------"); //填写最大水位-设计值 String fourteenDesignValuesNum = obj.getDesignValues(); - WebElement fourteenDesignValuesNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[17]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); + WebElement fourteenDesignValuesNumEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div" + + "/div[4]/div[1]/div[14]/div[2]/div/div/div[3]/table/tbody/tr/td[11]/div/div/div/input")); fourteenDesignValuesNumEle.clear(); fourteenDesignValuesNumEle.sendKeys(fourteenDesignValuesNum); log.info("填写最大水位-设计值---------"); //填写已采取措施行动 String fourteenActionHasBeenTaken = obj.getActionHasBeenTaken(); - WebElement fourteenActionHasBeenTakenEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[17]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/input")); + WebElement fourteenActionHasBeenTakenEle = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section" + + "/div/div[4]/div[1]/div[14]/div[2]/div/div/div[3]/table/tbody/tr/td[12]/div/div/input")); fourteenActionHasBeenTakenEle.clear(); fourteenActionHasBeenTakenEle.sendKeys(fourteenActionHasBeenTaken); log.info("填写已采取措施行动----------"); @@ -1968,7 +2145,8 @@ public class DutyDailyOp { //提交数据 private void submitData() throws InterruptedException { // //点击提交按钮,提交数据 - WebElement submitBtn = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[19]/button[3]")); + WebElement submitBtn = webDriver.findElement(By.xpath("//*[@id=\"app\"]/div/section/div/div[4]/div[1]/div[16" + + "]/button[3]")); if (submitBtn.isDisplayed()) { //存在 log.info("日报提交按钮存在-----------"); @@ -1996,7 +2174,7 @@ public class DutyDailyOp { Thread.sleep(1000); //取消弹框 // webDriver.findElement(By.xpath("/html/body/div[3]/div/div[3]/button[1]")).click(); - } else { + } else{ log.info("日报确认按钮不存在-----------"); } log.info("点击弹出框确认----------"); diff --git a/src/main/java/com/bonus/autoweb/base/DutyLogIOp.java b/src/main/java/com/bonus/autoweb/base/DutyLogIOp.java index 5eb525f..2fd67e4 100644 --- a/src/main/java/com/bonus/autoweb/base/DutyLogIOp.java +++ b/src/main/java/com/bonus/autoweb/base/DutyLogIOp.java @@ -41,7 +41,7 @@ public class DutyLogIOp { changeDay(); } Thread.sleep(5000); - //定位值班日志并点击 + //定位值班日志并点,击 webDriver.findElement(By.id("tab-5")).click(); log.info("定位值班日志并点击----------"); Thread.sleep(5000); @@ -182,39 +182,39 @@ public class DutyLogIOp { xstream.alias("log", LogBean.class); LogBean bean = (LogBean) xstream.fromXML(xml); - - //输入天气 - String tq = bean.getWeather(); -// /html/body/div[3]/div/div[2]/div/form/div[3]/div/div/div[3]/div/div/div[1]/input - WebElement weatherElement = webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[3]/div/div/div[5]/div/div/div/input")); - if (StringHelper.isEmptyAndNull(weatherElement.getText())){ - weatherElement.clear(); - weatherElement.sendKeys(tq); - log.info("输入天气----------"); - } - Thread.sleep(500); - - //输入最低气温 - String zdqw = bean.getMin_temperature(); -// /html/body/div[3]/div/div[2]/div/form/div[3]/div/div/div[4]/div/div/div[1]/input - WebElement minTemperatureElement = webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[3]/div/div/div[7]/div/div/div/input")); - if (StringHelper.isEmptyAndNull(minTemperatureElement.getText())){ - minTemperatureElement.clear(); - minTemperatureElement.sendKeys(zdqw); - log.info("输入最低气温----------"); - } - Thread.sleep(500); - - //输入最高气温 - String zgqw = bean.getMax_temperature(); -// /html/body/div[3]/div/div[2]/div/form/div[3]/div/div/div[4]/div/div/div[1]/input - WebElement maxTemperatureElement = webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[3]/div/div/div[9]/div/div/div/input")); - if (StringHelper.isEmptyAndNull(maxTemperatureElement.getText())){ - maxTemperatureElement.clear(); - maxTemperatureElement.sendKeys(zgqw); - log.info("输入最高气温----------"); - } - Thread.sleep(500); +// +// //输入天气 +// String tq = bean.getWeather(); +//// /html/body/div[3]/div/div[2]/div/form/div[3]/div/div/div[3]/div/div/div[1]/input +// WebElement weatherElement = webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[3]/div/div/div[5]/div/div/div/input")); +// if (StringHelper.isEmptyAndNull(weatherElement.getText())){ +// weatherElement.clear(); +// weatherElement.sendKeys(tq); +// log.info("输入天气----------"); +// } +// Thread.sleep(500); +// +// //输入最低气温 +// String zdqw = bean.getMin_temperature(); +//// /html/body/div[3]/div/div[2]/div/form/div[3]/div/div/div[4]/div/div/div[1]/input +// WebElement minTemperatureElement = webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[3]/div/div/div[7]/div/div/div/input")); +// if (StringHelper.isEmptyAndNull(minTemperatureElement.getText())){ +// minTemperatureElement.clear(); +// minTemperatureElement.sendKeys(zdqw); +// log.info("输入最低气温----------"); +// } +// Thread.sleep(500); +// +// //输入最高气温 +// String zgqw = bean.getMax_temperature(); +//// /html/body/div[3]/div/div[2]/div/form/div[3]/div/div/div[4]/div/div/div[1]/input +// WebElement maxTemperatureElement = webDriver.findElement(By.xpath("/html/body/div[3]/div/div[2]/div/form/div[3]/div/div/div[9]/div/div/div/input")); +// if (StringHelper.isEmptyAndNull(maxTemperatureElement.getText())){ +// maxTemperatureElement.clear(); +// maxTemperatureElement.sendKeys(zgqw); +// log.info("输入最高气温----------"); +// } +// Thread.sleep(500); //事件监测 标题 String sjjc_title = bean.getEvent_detection_title();