I'm trying to automate some stuff on the Amazon website. As a part of it I need to go to today's deals and select 'electronics' checkbox and then I need to get all the links present on the page. I'm writing below code:
List<WebElement> allLinks = driver.findElements(By.id("dealTitle"));
But strangely this is capturing only few links at the end of the page and not the other links of the products I'm interested in. All these have the same id, class names. They are not even in different frame. Can someone please help me to proceed?