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 … Continue reading Independent-dependent concept in XPath Expression

Part 2: All about XPath: Different ways of writing XPath expression.

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.

Part 1: All about XPath in Selenium Webdriver: Basic concepts

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

Part 2: Ways of locating Web element using: Name, Class Name, Tag Name, Link Text

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

Why syntax is “driver.manage().window().maximize();”?

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();”?

Hierarchy of Selenium Classes and Interfaces

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

Launch of Edge and Internet Explorer browser in Selenium 3

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