CodeKru
Menu

Learning sequence + reference

Selenium Java tutorials

Learn browser automation with Java, from your first test to reliable element interactions.

Published sequence: foundations through interacting with web elements.

Prerequisite: Java basics and reference

Jump to sectionModule 0 · Selenium foundationsModule 1 · Driving the browserModule 2 · Locators That Don’t BreakModule 3 · Interacting with Web ElementsModule 4 · Synchronization and ReliabilityReference by task
All published links shown

Learning sequence

Module 0 · Selenium foundations

01
What is Selenium?Understand what browser automation can and cannot do.
02
Selenium Ecosystem: WebDriver, Grid, IDE, and Selenium ManagerFind your way around the toolset.

Module 1 · Driving the browser

Module 2 · Locators That Don’t Break

11
Selenium Relative Locators: Find Elements by PositionUse position where appropriate.

Module 3 · Interacting with Web Elements

Module 4 · Synchronization and Reliability

16
Why Selenium Tests Fail: Timing, Dynamic Pages, and Stale ElementsSee why tests fail from timing, delayed pages, and stale elements.

Find a specific answer

Reference by task

Read these independently when you need a particular method or technique.

Locators in Selenium

Selenium Locators Speed Test: Fastest to Slowest

Basic Web Element Interactions

Understanding WebElement in Selenium

click() method in Selenium Java

Click an element and understand common interaction failures.

getCssValue() vs getAttribute() methods in Selenium

getLocation() method in Selenium Java

getRect() method in Selenium Java

getSize() method in Selenium Java with Examples

getTagName() method in Selenium Java

Selenium: driver.findElement() vs Webelement.findElement()

Handling specific elements

How to get the hidden text of an element in Selenium?

How to get the placeholder text in selenium?

Find SVG Element using XPath in Selenium Webdriver

How to click on SVG elements in Selenium Webdriver?

Waits

Can we use implicit and explicit waits together?

Actions Class in Selenium

Chrome Devtools with Selenium

Interacting with Chrome DevTools using Selenium

How to capture the console logs in Selenium Java?

Network throttling in Chrome with Selenium

How to get network call requests in Selenium?

How to get network call responses in Selenium?

Misc

How to Read Data from Excel in Selenium

How to know if a field is editable or not in selenium?

How to get XY coordinates of an element in selenium?

How to get the tag name of an element in Selenium?

How to compare images in Selenium Webdriver?

Put the lesson into practice

Use the existing CodeKru tools and TestKru practice pages alongside each lesson.

Open TestKru ↗ (new tab)