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
-
Visit Flipkart – Get product discount % – Convert "19% Off" to
19
(int). -
Search for a product on Amazon – Extract title, price, and rating.
-
Open MakeMyTrip – Select source and destination cities – Print available flights.
-
Visit IRCTC – Check available trains between two stations.
-
Login to Facebook – Validate error message on wrong password.
-
Search on Google – Count number of result links on the first page.
-
Go to YouTube – Search a video – Play the first video.
-
Visit RedBus – Select cities and date – Extract available buses and prices.
-
Open Myntra – Filter products by brand and price – Count results.
-
Go to Snapdeal – Add a product to the cart – Check if it’s added.
-
Open Zomato – Search a restaurant – Extract ratings and delivery time.
-
Open LinkedIn – Login – Validate incorrect login message.
-
Visit BookMyShow – Select a movie – Check availability and showtimes.
-
Open Wikipedia – Search a topic – Validate first heading text.
-
Visit Quora – Search a topic – Click on the first question link.
-
Go to Twitter – Try to login with wrong data – Validate error.
-
Open Instagram – Check broken login and error validation.
-
Visit Flipkart – Hover on "Electronics" – Print sub-categories.
-
Go to Amazon – Add a product to wishlist – Check confirmation message.
-
Go to NDTV – Get current weather and temperature from homepage.
-
Visit Cricbuzz – Print latest match score from homepage.
-
Go to Google Maps – Search a location – Extract distance info.
-
Go to JustDial – Search for plumbers in a city – Extract names & ratings.
-
Visit OLX – Search a product – Extract price and location.
-
Go to Times of India – Click on latest news – Validate page title.
-
Go to IRCTC – Validate auto-suggestion for station names.
-
Visit Flipkart – Sort mobiles by price low to high – Validate sorting.
-
Visit Amazon – Apply filters (brand, price) – Validate filtered results.
-
Open a travel site – Select round trip – Validate return date field is enabled.
-
Capture alert box message after submitting empty form on a site.
Comments
Post a Comment