Unit 1: Introduction to Selenium - Subjective Questions

CSE377 — Web Automation Testing • Practice Questions with Detailed Answers

20 questions

1

Who developed Selenium? Describe the origin and early development of the Selenium project.

2

Define Selenium and explain its major features and applications in web automation testing.

3

Describe the major components of the Selenium suite and state the purpose of each component.

4

Compare Selenium IDE, Selenium WebDriver, and Selenium Grid with respect to purpose, users, advantages, and limitations.

5

Explain the steps required to install Selenium for a Java-based automation project.

6

Describe how to download, install, and configure the latest Eclipse IDE for Selenium testing with Java.

7

Explain how Selenium dependencies can be added to an Eclipse project using Maven and by manual JAR configuration.

8

Write and explain a first Selenium WebDriver script in Java that launches Chrome, opens a website, prints its title, and closes the browser.

9

Describe the general structure of a Selenium test and explain the setup, execution, verification, and teardown phases.

10

Explain how Selenium tests are created and run using JUnit or TestNG in Eclipse.

11

Compare Selenium WebDriver with Selenium RC in terms of architecture, execution, speed, browser interaction, and current usage.

12

Why was Selenium WebDriver introduced as a replacement for Selenium RC? Explain the major limitations of Selenium RC.

13

What is an AUT? Describe how an Application Under Test is launched through Selenium WebDriver.

14

Explain how to launch the same AUT in Firefox and Chrome using Selenium WebDriver. Include the role of browser drivers.

15

Describe a browser-independent approach for running one Selenium test in both Firefox and Chrome.

16

What are web elements? Explain how the properties of elements can be inspected using browser developer tools.

17

Explain the different locator strategies available in Selenium WebDriver and provide suitable examples.

18

Distinguish between absolute XPath, relative XPath, and CSS selectors for locating elements.

19

Describe how Selenium locates and interacts with an element after its properties have been inspected.

20

Design and explain a complete Selenium test workflow that launches an AUT, inspects and locates elements, performs a login action, verifies the result, and closes the browser.