Selenium Interview Question 4 – Difference Between @FindBy and findElement() Method in Selenium WebDriver

We can locate web element/s on a webpage using both FindBy and findElement() or findElements(). Primary purpose of both ways is same but the way it is done, is different. Below are the differences between FindBy and findElement in Selenium WebDriver: FindBy is an annotation while findElement and findElements are methods. Remember FindBy is provided … Continue reading Selenium Interview Question 4 – Difference Between @FindBy and findElement() Method in Selenium WebDriver

All about findElement() and findElements() methods

Hello Folks, In this post we will learn: What is findElement() method. What is findElements() method. What is difference between findElement() and findElements() methods. What is common between findElement() and findElements() methods. Exception thrown in case of element is not found. Introduction: A webpage has many elements like button, text box etc. These elements are called … Continue reading All about findElement() and findElements() methods