Greens Technologys phone
Greens Technologys Whatsapp

Selenium Interview Questions

(5.0)  |   85,984 Ratings

16) What is Selenese?

Selenese is the language which is used to write test scripts in Selenium IDE

17) Name the three types of Selenese.

  • Accessors: Used for storing the values in a variable
  • Actions: Used for performing the interactions and operations with the target elements
  • Assertions: Used as a check point

18) What are Startpoints and Breakpoints in Selenium?

  • Startpoints indicate the point from where the execution should begin. They can be used to run a test script from a breakpoint or the middle of the code.
  • Breakpoints are used to stop execution of a code. They help you verify that your code is working as expected.

19) What are the different types of locators in Selenium?

The locator can be termed as an address that identifies a web element uniquely within the webpage. Thus, to identify web elements accurately and precisely we have different types of locators in Selenium:

  • ID
  • ClassName
  • Name
  • TagName
  • LinkText
  • PartialLinkText
  • Xpath
  • CSS Selector
  • DOM

20) When should I use Selenium Grid?

Selenium Grid can be used to execute same or different test scripts on multiple platforms and browsers concurrently so as to achieve distributed test execution, testing under different environments and saving execution time remarkably.

21) What do we mean by Selenium 1 and Selenium 2?

Selenium RC and WebDriver, in a combination, are popularly known as Selenium 2. Selenium RC alone is also referred as Selenium 1.

22) Which is the latest Selenium tool?


23) How do I launch the browser using WebDriver?

  1. The following syntax can be used to launch Browser:
  2. WebDriver driver = new FirefoxDriver();
  3. WebDriver driver = new ChromeDriver();
  4. WebDriver driver = new InternetExplorerDriver();

24) What are the different types of Drivers available in WebDriver?

  • FirefoxDriver
  • InternetExplorerDriver
  • ChromeDriver
  • SafariDriver
  • OperaDriver
  • AndroidDriver
  • IPhoneDriver
  • HtmlUnitDriver

25) What are the different types of waits available in WebDriver?

There are two types of waits available in WebDriver:

  1. Implicit Wait
  2. Explicit Wait

Implicit Wait: Implicit waits are used to provide a default waiting time (say 30 seconds) between each consecutive test step/command across the entire test script. Thus, subsequent test step would only execute when the 30 seconds have elapsed after executing the previous test step/command.
Explicit Wait: Explicit waits are used to halt the execution till the time a particular condition is met or the maximum time has elapsed. Unlike Implicit waits, explicit waits are applied for a particular instance only

26) How to type in a textbox using Selenium

The user can use sendKeys(“String to be entered”) to enter the string in the textbox.
WebElement username = drv.findElement(“Email”));
// entering username

27) How can you find if an element in displayed on the screen?

WebDriver facilitates the user with the following methods to check the visibility of the web elements. These web elements can be buttons, drop boxes, checkboxes, radio buttons, labels etc. isDisplayed()
Syntax: isDisplayed():
boolean buttonPresence = driver.findElement(“gbqfba”)).isDisplayed();
boolean buttonSelected = driver.findElement(“gbqfba”)).isDisplayed();
boolean searchIconEnabled = driver.findElement(“gbqfb”)).isEnabled();

28) What is an XPath?

XPath is used to locate the elements. Using XPath, we could navigate through elements and attributes in an XML document to locate web elements such as textbox, button, checkbox, Image etc., in a web page.

In simple words, it is used to distribute your test execution on multiple platforms and environments concurrently.

29) What is the difference between “/” and “//” ?

Single Slash “/” – Single slash is used to create XPath with absolute path i.e. the XPath would be created to start selection from the document node/start node.
Double Slash “//” – Double slash is used to create XPath with relative path i.e. the XPath would be created to start selection from anywhere within the document.

30) What is an Object Repository? How is it created in Selenium?

An object repository allows a tester to store web elements of the Application Under Test (AUT) together with their locator values, in one or more centralized locations as opposed to hard coding them within the test scripts.

31) How can you handle windows based popups with Selenium?

Selenium solely supports web application testing. It does not support testing of Windows-based applications. To handle Windows-based pop-ups, third party intervention is required. AutoIT and Robot Class are examples of third party tools that you can use alongside selenium to handle Windows-based pop ups.

32) What is the difference between Absolute Path and Relative Path?

*Absolute XPath starts from the root node and ends with desired descendant element’s node. It starts with top HTML node and ends with input node. It starts with a single forward slash(/) as shown below.


*Relative XPath starts from any node in between the HTML page to the current element’s node(last node of the element). It starts with a double forward slash(//) as shown below.


Do not wait anymore! Call Us @ 89399 15577 to know more about Selenium training in chennai. You can also contact us by submitting the Quick Enquiry form on the right side of this page to know more about the Selenium Course in Chennai.

For Chennai Branches
Adyar - +91 89399 15577
OMR - +91 89399 25577
Velachery - +91 89399 15577
Tambaram - +91 89399 25577


Our Reviews 5 Star Rating: Recommended - Best IT Training in Chennai

5  out of 5  based on 12263 ratings.

Google          5 Star Rating: Recommended - Best IT Training in Chennai

Facebook      5 Star Rating: Recommended - Best IT Training in Chennai

UrbanPro       5 Star Rating: Recommended - Best IT Training in Chennai

Sulekha         5 Star Rating: Recommended - Best IT Training in Chennai

Yet5              5 Star Rating: Recommended - Best IT Training in Chennai

Justdial          5 Star Rating: Recommended - Best IT Training in Chennai

Top Courses