Level 1 – Core Java and Selenium Basics
This level builds the foundation required for every Selenium Automation Tester. Before learning advanced concepts like frameworks or Jenkins, you should become comfortable with browser automation, locators, and WebElement methods.
Browser Launch and Setup
Learn how to launch different browsers such as Chrome, Firefox, and Edge using Selenium.
Topics covered include:
- Browser launch
- Browser maximize
- Delete cookies
- Open application URL
- Close vs Quit
- WebDriverManager setup
Practice Exercise
Launch Chrome, open Google, verify the page loads successfully, and close the browser.
Deep Dive: Selenium Practical Exercises Cluster 2
Locators – Complete Practice
Every Selenium test begins by locating web elements.
Practice every locator strategy:
- id
- name
- className
- tagName
- linkText
- partialLinkText
- cssSelector
- XPath
Practice Exercises
- Locate username and password fields.
- Handle dynamic IDs.
- Practice absolute and relative XPath.
- Use XPath functions:
- contains()
- starts-with()
- text()
- AND
- OR
- following
- preceding
- parent
- child
Deep Dive: Selenium Practical Exercises Cluster 3
WebElement Actions
Once elements are located, Selenium interacts with them using WebElement methods.
Practice:
- sendKeys()
- click()
- clear()
- getText()
- getAttribute()
- isDisplayed()
- isEnabled()
- isSelected()
Practice Exercises
- Validate an error message.
- Check whether a button is enabled.
- Verify whether a checkbox is selected.
Deep Dive: Selenium Practical Exercises Cluster 4
Level 2 – Common UI Components
Most web applications contain standard UI controls such as text boxes, radio buttons, checkboxes, dropdowns, alerts, frames, and browser windows.
Learning these controls prepares you for day-to-day automation work.
Text Boxes and Buttons
Practice:
- Entering text.
- Validating placeholder text.
- Disabled fields.
- Button validation.
Deep Dive: Selenium Practical Exercises Cluster 5
Radio Buttons and Checkboxes
Practice:
- Select a single checkbox.
- Select multiple checkboxes.
- Validate default selections.
- Verify radio button behavior.
Real-Time Exercise
Automate preference selection in a registration form.
Deep Dive: Selenium Practical Exercises Cluster 5
Dropdowns (Very Important)
Dropdown handling is one of the most frequently asked Selenium interview topics.
Practice:
- Select by visible text.
- Select by value.
- Select by index.
- Multi-select dropdowns.
- Bootstrap and custom dropdowns.
Practice Exercises
- Country selection.
- Date selection.
- Dynamic dropdown handling.
Deep Dive: Selenium Practical Exercises Cluster 6
Alerts and Popups
Practice handling:
- Simple alerts.
- Confirmation alerts.
- Prompt alerts.
Practice Exercises
- Accept alerts.
- Dismiss alerts.
- Enter text into prompt alerts.
Deep Dive: Selenium Practical Exercises Cluster 7
Frames and iFrames
Practice switching using:
- Index.
- Name or ID.
- WebElement.
Also practice:
- Nested frames.
- Returning to the default content.
Deep Dive: Selenium Practical Exercises Cluster 8
Windows and Browser Tabs
Learn how to automate multiple browser windows.
Practice:
- Parent-to-child switching.
- Child-to-parent switching.
- Closing individual windows.
- Managing multiple browser tabs.
Deep Dive: Selenium Practical Exercises Cluster 9
Level 3 – Synchronization and User Interactions
Synchronization is one of the most important Selenium topics because modern web applications load content dynamically.
Wait Mechanisms (Critical)
Practice:
- Thread.sleep() (and understand why it should generally be avoided)
- Implicit Wait
- Explicit Wait
- Fluent Wait
Practice Exercises
- Wait until an element becomes visible.
- Wait until an element becomes clickable.
- Wait for complete page loading.
Deep Dive: Selenium Practical Exercises Cluster 10
Mouse and Keyboard Actions
Using the Actions class, practice:
- Mouse hover.
- Right click.
- Double click.
- Drag and drop.
- Slider handling.
- Keyboard actions.
- Keys.ENTER.
- Keys.TAB.
Deep Dive: Selenium Practical Exercises Cluster 10
JavaScript Executor
Learn situations where Selenium actions are insufficient.
Practice:
- JavaScript click.
- Scroll down.
- Scroll up.
- Scroll to element.
- Retrieve page title using JavaScript.
Deep Dive: Selenium Practical Exercises Cluster 10
Level 4 – Real-Time Automation Scenarios
After mastering Selenium basics, begin practicing real-world automation scenarios commonly used in enterprise applications.
File Upload and Download
Practice:
- Upload using sendKeys().
- Upload using Robot Class.
- Upload using AutoIT.
- Validate downloaded files.
Web Tables (Very Important)
Practice:
- Static tables.
- Dynamic tables.
- Paginated tables.
- Fetching row and column data.
- Selecting rows based on conditions.
Real-Time Exercise
Select the employee whose salary is greater than ₹50,000.
Calendar and Date Picker
Practice:
- Current date.
- Future date.
- Past date.
- Dynamic calendars.
Broken Links
Practice:
- Finding all hyperlinks.
- Validating HTTP response codes.
- Identifying broken links.
Tooltip Handling
Practice:
- Retrieve tooltip text.
- Validate tooltip messages.
Shadow DOM (Advanced)
Practice:
- Opening Shadow Root.
- Accessing Shadow DOM elements.
Level 5 – Framework Design and Best Practices
This level focuses on building maintainable Selenium automation frameworks.
Page Object Model (POM)
Practice:
- Creating page classes.
- Using @FindBy.
- PageFactory initialization.
TestNG Integration
Practice:
- @Test
- @BeforeMethod
- @AfterMethod
- @BeforeClass
- @AfterClass
- Groups
- Priority
- DependsOnMethods
- DataProvider
- Parallel execution
Data-Driven Testing
Practice using:
- Excel (Apache POI)
- Properties files
- JSON
- XML
Maven Integration
Practice:
- pom.xml
- Dependency management
- Surefire Plugin
- Running tests with Maven
Logging
Implement logging using:
- Log4j
- Log4j2
Generate logs in:
- Console
- Log files
Reporting
Practice:
- TestNG Reports
- Extent Reports
- Screenshot integration
Screenshot Handling
Capture screenshots:
- On test failure.
- With timestamps.
- Inside dedicated folders.
Level 6 – CI/CD and Advanced Automation
This level introduces automation execution inside enterprise environments.
Jenkins Integration
Practice:
- Creating Jenkins jobs.
- Git integration.
- Maven build execution.
- Nightly scheduled jobs.
- Viewing execution reports.
Cross-Browser Testing
Practice execution on:
- Chrome
- Firefox
- Edge
- Headless browsers
Parallel Execution
Practice:
- TestNG XML configuration.
- Thread count.
- Browser parallel execution.
Exception Handling
Handle Selenium exceptions such as:
- NoSuchElementException
- StaleElementReferenceException
- TimeoutException
Selenium Grid
Practice:
- Hub setup.
- Node configuration.
- Remote execution.
Retry Failed Tests
Practice:
- RetryAnalyzer
- failed.xml execution
CAPTCHA and OTP (Interview Topic)
Understand:
- Why CAPTCHA cannot be automated.
- Why OTP should not be automated.
- How enterprise projects handle them.
Level 7 – Interview Scenario Practice
This final level focuses on solving practical interview questions.
Real-Time Interview Scenarios
Practice scenarios involving:
- Dynamic elements.
- Flaky tests.
- Slow execution.
- Browser crashes.
- Locator failures.
- Environment downtime.
Framework Design Exercise
Design a complete Selenium automation framework from scratch containing:
- BaseTest
- DriverFactory
- Utility Classes
- Configuration Layer
- Listeners
- Reporting
- Test Classes
Bonus Practice Websites
Practice Selenium automation using these websites:
- OrangeHRM
- Automation Practice
- DemoQA
- OpenCart
- NopCommerce
- Amazon (Read-Only)
These applications provide excellent real-world scenarios for Selenium learning and interview preparation.
FAQs
How is this roadmap organized?
The roadmap contains 34 practical Selenium exercises grouped into seven progressive learning levels, starting from browser automation and ending with enterprise framework design and interview scenarios.
Where should beginners start?
Start with Level 1, which covers:
- Browser launch.
- Selenium locators.
- WebElement actions.
These topics form the foundation for every advanced Selenium concept.
Which topics are most important for Selenium interviews?
The most important interview topics include:
- Dropdowns.
- Web Tables.
- Wait Mechanisms.
- Page Object Model.
- TestNG.
- Framework Design.
- Jenkins.
- Selenium Grid.
- CAPTCHA handling.
Which topics should experienced automation testers focus on?
Professionals with experience should spend more time on:
- Dynamic web tables.
- Shadow DOM.
- Framework architecture.
- Jenkins.
- Selenium Grid.
- Parallel execution.
- Real-world interview scenarios.
Which websites are best for Selenium practice?
Recommended websites include:
- OrangeHRM
- Automation Practice
- DemoQA
- OpenCart
- NopCommerce
- Amazon (Read-Only)
These sites provide realistic automation scenarios suitable for beginners and experienced testers.