Real World Example

Where Selenium Is Used

Company / project typeWhat Selenium automates
E-commerce (Flipkart, Myntra, Amazon sellers)search, product page, cart, checkout regression on every release
Banking and insurance projects at TCS, Infosys, Wipronet banking login, fund transfer, policy purchase journeys across browsers
SaaS products (Zoho, Freshworks)admin dashboards and forms in a nightly CI run
Travel (MakeMyTrip, IRCTC-like portals)search with many data sets: cities, dates, passengers

A First Look at a Real Test

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class SearchSmokeTest {
    public static void main(String[] args) {
        WebDriver driver = new ChromeDriver();              // opens Chrome
        driver.get("https://shopease.example.com");
        driver.findElement(By.id("search")).sendKeys("running shoes\n");
        int count = driver.findElements(By.cssSelector(".product-card")).size();
        System.out.println("Products found: " + count);
        driver.quit();                                      // closes Chrome
    }
}

Example

Run it from the IDE. Chrome opens, the search runs, and the console prints:

mvn compile exec:java -Dexec.mainClass=SearchSmokeTest

Example output

Products found: 24

Every line will make sense by the end of this level.