how to get multiple elements in selenium.by webdriver code example
Example: selenium find multiple elements
// returns an array of elements
let allTextBoxes = driver.findElements(By.css("input"));
// returns an array of elements
let allTextBoxes = driver.findElements(By.css("input"));