going to find an element on the page by using the
findElementByLinkText() method that is on each of the Browser Driver classes.
findElement calls will return a
WebElement object that we can perform actions on.
Follow these steps to see it work:
Driver.get("http://book.theautomatedtester.co.uk") WebElement element = ((FindsByLinkText)driver).findElementByLinkText("Chapter1");
We have just seen how we can find an element by using the