Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
From Scratch to Profi: Test, selectors, HTML, ID, CSS, XPath
Rating: 4.5 out of 5(29 ratings)
4,754 students

From Scratch to Profi: Test, selectors, HTML, ID, CSS, XPath

write robust web locators to write test automation scripts that are likely not to break. Learn Ids, Classname, XPath
Created byMohamed Soliman
Last updated 3/2025
English

What you'll learn

  • why to write unbreakable web locators for web automation
  • selecting the best identification method to use
  • identifying elements on web page using Id, classname, other identifiers
  • identifying elements on web page using XPath

Course content

5 sections15 lectures59m total length
  • What are web locators8:11

    Discover how web locators identify HTML elements on a page for automated testing and QA. Use browser developer tools and the console to locate and test elements across browsers.

  • The DOM3:36

    Discover how the DOM maps HTML elements into a hierarchical family of parents, children, and siblings, and learn to inspect and use these relationships to access page elements.

  • The Console; testing tool2:37
  • Why we need web locators1:37
  • properties of a good web locator2:43

Requirements

  • basic knowledge about web and HTML
  • willing to learn

Description

Web locators are very important in web automation, whether for test or any other purpose. Because everything in web development go for Automation now, including integration in CI/CD pipelines and nightly regression tests, so web locators are nowadays more important than ever.

To write a web locator, there's a selections of methods available. Engineers have developed many ways to write web locators. Because in different situations, one or the other web locator may be fit for a specific case. Web locators can depend on Id, a classname, a type, a name or some other property. In other cases, we may be obliged to use XPath. Don't worry, the definition of each of these as well as examples and use cases are covered within this course.

We learn in this course what a robust web locator means. How we can write robust web locators. We also learn how to choose the best locator between the different types available for use.

To learn more about me and my work background, please visit my personal page. There's other courses on this subject, but I give you the reasons why mine is best for you. First, I come from technical background and have applied the principles in this course many times. Second, I give you complete examples while we learn so that you can see how to actually use the material and excel it. Third, I am always available to answer your questions or inquiries. Please write me and I will always reply to you.

I made the course classified into small sections so you can in the future revisit only parts you need to review your knowledge about.

It's a fun course, so let's get started right away.

Who this course is for:

  • web scrapers
  • test automation engineers
  • RPA Engineers