
Explore HTML basics, inspect page elements, and create locators using id and name attributes to prepare Selenium WebDriver actions like clicking links, with a simple HTML document for practice.
Inspect web elements with Chrome and Firefox tools, read tag name and attributes like href and class, and use these to craft XPath and CSS selectors for Selenium WebDriver.
Learn to locate elements by name, class, and id, click links with partial text, and get text to print the product title and price from a dynamic Amazon search.
Learn to locate elements by name and class, use partial link text for dynamic links, and fetch product title and price with get text in a hands-on amazon scenario.
Explore the selectors hub Chrome extension, a modern alternative to ChroPath, for locating elements and generating and testing relative xpath and css selectors, with dev tools verification.
Learn to create and test XPath and CSS selectors for locating elements in selenium, using chropath extension, and recognize when id or name fall short; chropath is deprecated, use SelectorsHub.
Learn to create xpath using element attributes, such as aria-label, id, or name, to locate single or multiple nodes in Selenium WebDriver with reliable selectors.
Create xpaths using the text of a node by starting with a double slash, the tag name, and text = 'value' for precise selection.
Master XPath for dynamic elements using multiple attributes with and/or, contains, starts with, and hybrid approaches, including wildcard tag names, and ensure cross-browser applicability.
Master XPath using parent-child relationships to craft robust selectors when basic methods fail, by navigating from a parent to a child with relative XPath and axes concepts.
Explore using ancestor and descendant relationships in XPath to locate elements with axes, wildcards, and optional attributes or position to reach specific nodes.
Explore the preceding and following relationships in XPath, including preceding-sibling and following-sibling, to build selectors. Understand how ancestors and descendants shape selection, and compare absolute versus relative XPath for elements.
Compare absolute and relative XPath from the root to elements, discuss indexing and dynamic page risks, and preview combining approaches and CSS selectors for Selenium WebDriver.
Explore CSS (cascading style sheets) and how CSS selectors locate elements in HTML, enabling Selenium tests with attributes-based selectors and comparisons to XPath.
Learn to create CSS selectors using tag names and attributes, including id and class, with practical examples from Amazon, and understand that CSS cannot select by text, unlike XPath.
Master CSS selectors for dynamic elements by using partial, starting, and ending attribute values, combined with tag names to locate single or multiple elements, with XPath parallels.
Create css selectors using multiple attribute-value pairs to perform AND matches, and use comma-separated options for OR-like matching on input elements.
Explore advanced css selectors, including tag name and attribute-based selections, and master descendant, child, and sibling relationships with plus and tilde in Selenium WebDriver.
Learn how to create css selectors using child numbering, including first-child, last-child, and nth-child, to filter children relative to a parent in Selenium.
Learn to retrieve and iterate a collection of web elements with Selenium, using findElements, CSS selectors, and for-each loops, printing link text and attributes such as class.
Master handling web elements collection by building precise css selectors and XPath to retrieve book image titles on the Goodreads homepage, using alt attributes and counting results.
Differentiate between existing and visible web elements, using isDisplayed with CSS selectors to filter visible items like images and links on pages such as Goodreads and Google.
Learn to locate web elements inside a parent element using Selenium, CSS selectors, and XPath on a product grid; filter by price and print titles and links.
Celebrate completing the course on XPath and CSS selectors for Selenium WebDriver, and explore more Dezlearn offerings, join the community, and connect via social media for future learning.
(Please Read) Note: ChroPath extension for Chrome, which is used in this course to inspect the elements, is no more available on Chrome. Please use SelectorsHub extension for the same purpose. Installing and using SelectorsHub is very similar to as that of ChroPath.
For the best video streaming quality, please adjust the resolution from 'settings' at bottom right-hand corner of video player. Choose 1080p or 720p as per your network speed.
This course covers:
WebPage HTML Structure Basics
Element Locating Strategies
Locating Elements By ID
Locating Elements By Name
Locating Elements By Link Text
Locating Elements By Partial Link Text
Locating Elements By Class
Hands on Exercises on Locaters
XPath - Basics
XPath - Axes
CSS Selectors - Basics
CSS Selectors - Advance
To get the maximum benefit from the course, please take a look at following steps explaining 'How to take this course?'
Step 1: Schedule 30-45 minutes of your time daily for 5 days a week. 'Continuity' is the key.
Step 2: All sessions are divided in small videos of less than 20 minutes. Watch 2-3 videos daily.
Step 3: Hands-on exercise is very important. So, immediately try out the programs discussed in the session. Try them on your won. You can download these programs from lecture resources.
Step 4: Assignments with answer keys are provided where-ever necessary. Complete the assignments before jumping on to the next sessions.
Step 5: If you come across any questions or issues, please feel free to contact me and I will make sure that your queries are resolved.
Wish you all a very happy learning.
Note: All the course videos are in Quad HD. For the best video streaming quality, please adjust the resolution from 'settings' at bottom right-hand corner of video player. Choose 1080p or 720p as per your network speed.