Make Selenium Easy

Selenium Code Practice – Get All Product Names Of Google Home Page

Introduction

This selenium scripting question is asked to beginners and intermediate-level professionals. The detailed problem statement is as below:-

  1. Launch Google Home page URL.
  2. Click on “Google Apps” Icon.
  3. Print all product names.

This looks simple but it has multiple Selenium concepts involved and that makes this question perfect for interviews.

Did you know that I have started a YouTube channel as well and I need your support to make it successful. Please do watch content then comment, like, share, and obviously subscribe.

Selenium concepts covered in above problem

  1. Locating SVG elements in Selenium WebDriver.
  2. Switch to IFrame in Selnium WebDriver.
  3. Locating multiple web elements
  4. Little complex Xpaths
  5. Stream Apis in Java

Selenium WebDriver Java Code

Output

You can subscribe to my YouTube channel RetargetCommon to learn from video tutorials.

If you have any doubt, feel free to comment below.
If you like my posts, please like, comment, share and subscribe.
#ThanksForReading
#HappyLearning

Find all Selenium related posts here, all API manual and automation related posts here, and find frequently asked Java Programs here.

Many other topics you can navigate through the menu.

Author: Amod Mahajan

My name is Amod Mahajan and I am an IT employee with 6+ years of experience in Software testing and staying in Bengaluru. My area of interest is Automation testing. I started from basics and went through so many selenium tutorials. Thanks to Mukesh Otwani as his tutorials are easy and cover basics to advance. I have habit of exploring concepts by deep diving. I used to make notes. I thought of sharing my knowledge through posts and now I am here. #KeepLearning #ShareLearning

Leave a Reply

Please wait...

Subscribe to new posts to become automation expert

Want to be notified when my new post is published? Get my posts in your inbox.

Selenium Code Practice – Get All Product Names Of Google Home Page

by Amod Mahajan time to read: 2 min
0
%d bloggers like this: