Categories
Mastering Development

How to locate an element from Amazon page without using xpath or CSS path?

Go here. Try to locate the checkbox button Books with Inspector Click on checkbox button to be selected 4. I try to iterate and to find the unique identifier “Books”. If you know another way to do click without to iterate is fine. I used this lines of code: List<WebElement> elements = new ArrayList<WebElement>(obj.findElements(By.cssSelector(“span.a-label.a-checkbox-label”))); for […]