Capgemini interview question

Find elements on page using index in case if there are multiple elements with single selector

Interview Answer

Anonymous

5 Jun 2019

WebElement element = driver.findElements(By.tagName("")).get(index);