借鉴与:https://ask.csdn.net/questions/8081814
直接上代码
List<WebElement> elementsByCssSelector = driver.findElementsByCssSelector(".el-input__inner");int size = elementsByCssSelector.size();elementsByCssSelector.get(0).sendKeys("admin");elementsByCssSelector.get(1).sendKeys("admin");