Make Selenium Easy

Learn Selenium With Quiz – Basic Level 3

As a part of a Series of posts on Learn Selenium With Quiz, This set contains very basic questions which people generally confuse with. I will suggest you to read below post before taking this quiz:

Hierarchy of Classes and Interfaces in Selenium WebDriver

Now take the quiz here:

Welcome to your Learn Selenium With Quiz – Basic Level 3

1. Which statement/s is not correct below?
2. Which statement/s is not correct below?
3. Which Java concept is shown in below statement:

WebDriver driver = new ChromeDriver()
4. Which statement/s  is correct below:

5. Which statement is will throw a RunTime Exception?

6. What statement below defines the need of  browser executable(Ex:-chromedriver.exe for windows) file?

7. How many browsers will be launched by below lines of code:
           ChromeDriver cd1= new ChromeDriver();
           ChromeDriver cd2= new ChromeDriver();

8. How many browsers will be launched:



ChromeDriver cd1= new ChromeDriver();
ChromeDriver cd1= new ChromeDriver();


9. How to maximize a browser window in Selenium WebDriver?

10. How many browsers will be closed at end of program?






ChromeDriver cd1= new ChromeDriver();
ChromeDriver cd2= new ChromeDriver();
cd1.quit();


Table of Contents

Author: Amod Mahajan

A software Tester who is paid to judge products developed by others. Currently getting paid in American Dollars. Writing technical posts and creating YouTube videos are my hobbies.

1 thought on “Learn Selenium With Quiz – Basic Level 3

  1. Could you pls clarify this one:- what an amazing blog bro. God bless you.

    ChromeDriver cd1= new ChromeDriver();
    ChromeDriver cd2= new ChromeDriver();
    cd1.quit();

    Answer Provided: CTE

    Correct Answer: 1

    Correct Answer explanation: “quit()” method closed all the associated browsers opened by driver reference on which it is called. So it will close browsers opened by cd1 only.

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.

Learn Selenium With Quiz – Basic Level 3

by Amod Mahajan time to read: <1 min
1
%d bloggers like this: