April 2017 – Make Selenium Easy
Hello Folks, We have learnt different ways of writing XPath expressions and CSS Selectors. There are some tools which generate XPath and CSS automatically for use. But for better understanding of concepts, you must write these by your own. So, in this post we will learn : How to write and validate XPath Expressions and CSS […]
Hello Folks, We have seen all locators except CSS Selectors in old posts. You can find links of old posts below: ID Locator name, className, linkText, PartialLinkText, tagName Locators Xpath Basic concepts Xpath Advanced Concepts We will cover CSS Selector in this post. We will see below topics: What is CSS?What is CSS Selectors?Different ways […]
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 […]
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. […]
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 […]
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 […]
Hello Folks, In last post we have learnt basic concepts about XPath. In this post ,we will learn to write XPath expressions: Using attribute name and value Using contains method Using ‘and’ operator Using ‘or’ operator Using last() method Using starts-with method Using wildcard character (*) Using text() method Using position method Using attribute name […]
Hello Folks, We have learnt 6 locators till now in details(Part 1 and Part 2). In this post we will learn: What is XPath. Absolute XPath Relative XPath Difference between single slash and double slash. Understating the term immediate nodes, Any nodes and indexed nodes. XPath is one of the locators available in selenium Webdriver. […]
Hello Folks, In last post , I explained about locating web element using ID. I explained last post in details so that you will be able to understand other locators easily. We will learn in this post: Locating web element using name. Locating web element using tag name. Locating web element using link text. Locating […]
Hello Folks, In this post we will learn: 1. What is HTML, Web elements and its attributes. 2. How to locate a web element through its id if any. 3. How to know if you are locating correctly. 4. How to let Selenium webdriver know where is element located. 5. How to know if any […]