Selenium Java

Selenium Java Practice

Learn to build production-style Selenium test automation in Java through hands-on challenges, one concept at a time.

Selenium Java 4.35Selenium Java 4.35
Read the Selenium overview
Module 1

Locators & Element Basics

Learn how Selenium finds elements on a page: locating them five different ways, reading values from nested nodes, working with ids that change on every load, and telling hidden elements apart from missing ones.

4
About this challenge

Read a single watch entry from a keeper's log board, reaching the same entry through all five basic locator strategies and pulling its text and nested timestamp as separate values.

About this challenge

Identify seed packets on a shelf whose reference ids are reprinted on every page load, selecting them by stable attributes and partial matches instead of by id or position.

About this challenge

Audit a ghost town business directory and tell a listing that is missing from the page apart from one that is present but hidden from view.

About this challenge

Inventory an observatory equipment panel with reprinted serial numbers, instruments held on standby and instruments struck off, classifying every instrument and reading each specification from its nested node.

About this path

This path starts with locators, the base of every Selenium test. Each challenge gives you a small web page to automate with Selenium 4 in Java, so you should be comfortable writing a small Java program and reading HTML. No earlier Selenium experience is needed.

Frequently asked questions

4

What will I practice in this path?

1 module: Locators & Element Basics.

How many challenges are there, and how hard are they?

4 challenges, all easy.

What does this path run on?

Challenges run on Selenium Java 4.35.

Do I need to install anything?

No. Every challenge runs in a browser-based IDE with everything already set up, and your code is graded automatically against a test suite.

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.