Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Mastering XPath and CSS Selector for Selenium
Rating: 4.6 out of 5(167 ratings)
668 students

Mastering XPath and CSS Selector for Selenium

Constructing Effective XPath and CSS Selector
Last updated 7/2019
English

What you'll learn

  • Understand what is XPath and CSS Selector.
  • What is the use in Selenium Webdriver with XPath and CSS Selector.
  • Types of XPath and CSS Selectors.
  • Methods available in XPath and CSS Selector.
  • Full knowledge on how to contruct XPath and CSS Selector when there is no proper attributes available.
  • Difference between CSS Selector and XPath.

Course content

6 sections48 lectures3h 20m total length
  • Course Introduction1:35

    This video will explain the intention of this course. And what is the important of mastering the XPath and CSS Selector if you are working with Selenium web driver automation tool.

  • XPath Introduction6:25

    XPath is a query language that is used for traversing through an XML document. It is used commonly to search particular elements or attributes with matching patterns.

    XPath provides various types of expressions which can be used to enquire relevant information from the XML document.

  • XPath Terminology4:58

    This video will explain different type of terminology which we will use in XPath. After watching this video will be able to understand the XPath terminology.

  • XPath Syntax4:49

    This video will explain how to write the XPath. After watching this video will understand the syntax of the XPath and we can construct the XPath accordingly.

  • XPath Operators2:04

    There are so many operators available in XPath. By using these we can construct effective XPaths according to our requirements.

  • Which Tool to find the XPath?4:28

    This video will give brief introduction about what are the tools available in to find the XPath in Chrome and Firefox browsers. But as part of this video series we will not use any tools. Will use Chrome developer options to find the XPath.

  • Absolute XPath8:12
    • It is the Direct way of finding the element.

    • Absolute XPath starts with the root/context node (i.e. html) as html is the starting tag of any web application or with the single forward slash(i.e. / )

    • Writing Absolute XPath is very easy.

    • It identifies the element very fast.

    • Apart from the advantages, there are few disadvantages also.

        • You can not recollect or remember for which element you have written this XPath.

        • This XPath may break once an extra element is added in between or an element is removed in between.

  • Exact XPath14:45
    • Finding elements with their own attributes.

    • It will start with the double forward slash (i.e. // )

    • Chances of failing is very very less.

    • Will find by taking an element's attributes like:

        • Id

        • Value

        • Class Name

        • Placeholder

        • Name etc...

  • Relative XPath7:36
    • Relative XPath starts with any of the element which we want.

    • Relative XPath will not starts with the root node.

    • Writing Relative XPath is bit time consuming.

    • The chances of failing Relative XPath is very less i.e. the way we construct the XPath.

    • It will start with the double forward slash (i.e. // )

    It will not be long as Absolute XPath.

Requirements

  • Minimum HTML knowledge.
  • Minimum Selenium Webdriver knowledge.
  • Minimum Testing knowledge.

Description

This is the only XPath and CSS Selector course which will cover all the information which is needed to find the elements/dynamic elements while automating any web application using Selenium or Appium. The reason behind making this course is, if you know how to construct XPath or CSS Selector then you are 50% success in writing your automation scripts.

I made this course very elaborative to construct your own XPath and CSS Selector to find the elements on the web page.

This course will cover what is XPath, XPath Types, XPath Terminology, XPath Syntax, XPath Operators, XPath Methods, XPath Indexing, XPath Axes, What is CSS Selector, CSS Selector Types, Methods in CSS Selector and Wildcards in CSS Selector etc...

For each and every XPath and CSS Selector, I tried to give appropriate example to demonstrate. So, that it will be very clear to you to understand and implement the same in your work with out any issues.

So, what you are waiting for !!!! please enroll and get the knowledge.

Who this course is for:

  • Beginners with no knowledge on XPath and CSS Selector.
  • Manual Testers who wants to step into Automation (i.e. Selenium Webdriver).
  • Selenium testers who lacks in XPath and CSS Seletor knowledge.
  • Selenium testers who wants to enhance knowledge in writing XPath and CSS Selector.