how to find multiple elements in selenium By 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"));