Explain Browser Navigation in Selenium WebDriver.

Navigate feature of WebDriver allows the test script developer to work with the browser’s Back, Forward, and Refresh controls. The method that is used for this purpose is navigate(). The following is its API syntax:             WebDriver.Navigation navigate() Obviously, there is no input parameter for this method, but the return type is the WebDriver. Navigation interface, which contains all of […]

List the difference between findElement and findElements methods in WebDriver?

findElement() findElements() The findElement() method returns first matching  WebElement object based on a specified search criteria. The findElements() method returns a list of WebElements matching the search criteria throw up NoSuchElementFoundException  exception when they fail to find the desired element using the specified locator strategy.  If no elements are found, it returns an empty list. WebElement findElement(By by) java.util.List<WebElement> findElements(By by)