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

Read More

Tools To Find XPath In Chrome Browser

Hello Folks, We have seen tools to find XPath in Firefox. Those tools were specific to Firefox browser. In this post, we will learn tools to find XPath in Chrome browser. Finding XPath without any tools: You can find XPath and CSS selector of any web element in chrome browser without any tools as well.

Read More

Independent-dependent concept in XPath Expression

Hello Folks, I will explain independent-dependent concept in writing XPath expression. Consider below scenario: You need to get the displayed price of iPhone 7 of all variants on Flipkart website. As we know price will vary based on model number, memory, color etc. Even price may change also with time or when some sale in

Read More

Tools to find XPath in Firefox browser

Hello Folks, In my last posts, we have learnt well how to locate web element in Selenium Webdriver using locators. We will learn in this post: Tools to find XPath/Css path in Firefox. It is good practice to write XPath by yourself. Advantages of writing XPath by yourself: More perfect XPath expressions. Better understanding of

Read More

Please wait...

Subscribe to new posts to become automation expert

Want to be notified when my new post is published? Get my posts in your inbox.