What is the difference between findElement and findElements


Both methods are abstract method of WebDriver interface and used to find the WebElement in a web page.

findElement() – it used to find the one web element. It return only one WebElement type.

findElements()- it used to find more than one web element. It return List of WebElements.


No comments :

No comments :

Post a Comment