30 real-time Java + Selenium programs

 Here are 30 real-time Java + Selenium programs that are practical and useful for testing real-world web applications. These tasks simulate actions like extracting product details, validating content, handling dynamic elements, and working with data.


๐Ÿ”น 30 Java + Selenium Real-Time Programs

  1. Visit Flipkart – Get product discount % – Convert "19% Off" to 19 (int).

  2. Search for a product on Amazon – Extract title, price, and rating.

  3. Open MakeMyTrip – Select source and destination cities – Print available flights.

  4. Visit IRCTC – Check available trains between two stations.

  5. Login to Facebook – Validate error message on wrong password.

  6. Search on Google – Count number of result links on the first page.

  7. Go to YouTube – Search a video – Play the first video.

  8. Visit RedBus – Select cities and date – Extract available buses and prices.

  9. Open Myntra – Filter products by brand and price – Count results.

  10. Go to Snapdeal – Add a product to the cart – Check if it’s added.

  11. Open Zomato – Search a restaurant – Extract ratings and delivery time.

  12. Open LinkedIn – Login – Validate incorrect login message.

  13. Visit BookMyShow – Select a movie – Check availability and showtimes.

  14. Open Wikipedia – Search a topic – Validate first heading text.

  15. Visit Quora – Search a topic – Click on the first question link.

  16. Go to Twitter – Try to login with wrong data – Validate error.

  17. Open Instagram – Check broken login and error validation.

  18. Visit Flipkart – Hover on "Electronics" – Print sub-categories.

  19. Go to Amazon – Add a product to wishlist – Check confirmation message.

  20. Go to NDTV – Get current weather and temperature from homepage.

  21. Visit Cricbuzz – Print latest match score from homepage.

  22. Go to Google Maps – Search a location – Extract distance info.

  23. Go to JustDial – Search for plumbers in a city – Extract names & ratings.

  24. Visit OLX – Search a product – Extract price and location.

  25. Go to Times of India – Click on latest news – Validate page title.

  26. Go to IRCTC – Validate auto-suggestion for station names.

  27. Visit Flipkart – Sort mobiles by price low to high – Validate sorting.

  28. Visit Amazon – Apply filters (brand, price) – Validate filtered results.

  29. Open a travel site – Select round trip – Validate return date field is enabled.

  30. Capture alert box message after submitting empty form on a site.



Comments

Popular posts from this blog

10 automation test cases for https://www.saucedemo.com/ (Sauce Demo)

Java Roadmap for SDET Superstars!

Mastering XPath in Selenium 4 ๐Ÿš€ – Supported Functions & Axes Explained