@Test(priority = 0)
public void baseMode() throws InterruptedException {
// 获取基站启动模式的下拉框内容
WebElement currentPosition = logConfigure.getDriver()
.findElement(By.xpath("//*[@id=\"app\"]/div/div[2]/div[2]/div/div[3]/div[1]/ul/li[5]/div[2]"));
currentPosition.click();
Thread.sleep(2000);
Select dropList = new Select(logConfigure.getDriver().findElement(By.className("input_select")));
List<String> actual_option = new ArrayList<>();
for (WebElement option : dropList.getOptions()) {
actual_option.add(option.getText());
}
List<String> expect_option = Arrays.asList(new String[] { "自动坐标", "已知点坐标" });
Assert.assertEquals(actual_option, expect_option);//期望数组和实际数组值是否一致
}