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 … Continue reading Independent-dependent concept in XPath Expression
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 … Continue reading Tools to find XPath in Firefox browser
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 … Continue reading Part 2: All about XPath: Different ways of writing XPath expression.
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. … Continue reading Part 1: All about XPath in Selenium Webdriver: Basic concepts
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 … Continue reading Part 2: Ways of locating Web element using: Name, Class Name, Tag Name, Link Text
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 … Continue reading Part 1: Ways of Locating Web Elements in Selenium using ID
Hello Folks, In my last post, I explained about some useful methods of WebDriver. I got some comments to explain why do we write syntax as below: driver.manage().window().maximize(); // To maxmize driver.navigate().to("some url"); // To open url driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);// To set implicit time Actually it's JAVA concept. It is called as method chaining. We will … Continue reading Why syntax is “driver.manage().window().maximize();”?
Hello Folks, I am here again with new topics. In this post, we will learn all basic methods of WebDriver and its usage. The main purpose of this post is to make you familiar of methods of WebDriver. We will see in details as well in upcoming posts. 1. How to open a URL in browser? … Continue reading All about WebDriver: Methods And Its Usages
Hello Folks, Selenium automates browser and to achieve this, Selenium people have provided many classes and interfaces. During learning selenium, many times we will use up-casting and down-casting concepts of JAVA. Many people know how to perform some operations like opening any desired browser through single method, running java script etc but they are not … Continue reading Hierarchy of Selenium Classes and Interfaces
Hello Folks, We have seen: How to launch Firefox browser. How to launch chrome browser. In this post we will learn: How to launch Edge browser(Windows 10 onward) How to launch Internet Explorer browser What is Edge browser: Microsoft Edge is a web browser developed by Microsoft and included in Windows 10, Windows 10 Mobile … Continue reading Launch of Edge and Internet Explorer browser in Selenium 3