are going to find an element on the page by using
findElementByClassName() method that is on each of the Browser Driver classes.
findElement calls will return a
WebElement object that we can do actions on.
Follow these steps to see it work:
List<WebElement> elements = ((FindsByClassName)driver).findElementsByClassName("storetext"); Assert.equals(1, elements.size());
We have just seen how we can find ...