15 Selenium Interview Questions and Answers in India

Filed in Nursing News by on March 17, 2020

15 Selenium Interview Questions and Answers in India.

Selenium Interview Questions : Selenium can be defined as a cross-platform and portable automation testing framework. It was created by Jason Huggins in the year 2004.

15 Selenium Interview Questions and Answers in India

Selenium can be used to write automation scripts for testing web applications. It assists in reducing manual testing efforts, improves productivity and quality.

This article will be of help to those who are planning to get a testing or test automation job.

1. 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.

2. What Are the Main Advantages of Selenium?

  • Selenium is a free and open source. You don’t need to spend any licensing cost to use it.
  • Cross Browser compatibility (Firefox, Chrome, Internet Explorer, Safari, etc.)
  • Multiple programming languages (Java, C#, Ruby, Python, Pearl, etc.) support
  • Compatibility with the main platform (Windows, Mac OS, Linux, etc.)
  • A huge amount of user base and helping communities
  • Automation scripts creating the ability for non-programmers as well as for programmers
  • Testing distribution support
  • Regular and fresh repository developments

3. Which is the Latest Selenium Tool?

Web Driver

4. How do I launch the browser using Web Driver?

The following syntax can be used to launch Browser:

  • Web Driver driver = new Firefox Driver();
  • Web Driver driver = new Chrome Driver();
  • Web Driver driver = new InternetExplorer Driver();

5. What are the Different Types of Drivers Available in Webdriver?

The different drivers available in WebDriver are:

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

6.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, the subsequent test step would only execute when the 30 seconds have elapsed after executing the previous test 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.

7. What are Various Ways of Locating an Element in Selenium?

The different locators in selenium are-

  1. Id
  2. XPath
  3. cssSelector
  4. className
  5. tagName
  6. name
  7. linkText
  8. partialLinkText

8. What is Automation Testing?

Automation testing or Test Automation is a process of automating the manual process to test the application under test.

Automation testing involves the use of a separate testing tool which lets you create test scripts which can be executed repeatedly and doesn’t require any manual intervention.

9. What are the Benefits of Automation Testing?

Benefits of Automation testing are:

  1. Supports execution of repeated test cases
  2. Aids in testing a large test matrix
  3. Enables parallel execution
  4. Encourages unattended execution
  5. Improves accuracy thereby reducing human-generated errors
  6. Saves time and money

10. Why Should Selenium be Selected as a Test Tool?

Selenium

  1. It is a free and open source
  2. It has a large user base and helping communities
  3. It has cross Browser compatibility (Firefox, Chrome, Internet Explorer, Safari, etc.)
  4. It has great platform compatibility (Windows, Mac OS, and Linux, etc.)
  5. It supports multiple programming languages (Java, C#, Ruby, Python, and Pearl, etc.)
  6. It has fresh and regular repository developments
  7. It supports distributed testing

11. What are the Testing Types that Can be Supported by Selenium?

Selenium supports the following types of testing:

  1. Functional Testing
  2. Regression Testing

12.What are the Limitations of Selenium?

Following are the limitations of Selenium:

  • Selenium supports testing of only web-based applications
  • Mobile applications cannot be tested using Selenium
  • Captcha and Barcode readers cannot be tested using Selenium
  • Reports can only be generated using third-party tools like TestNG or JUnit.
  • As Selenium is a free tool, thus there is no ready vendor support through the user can find numerous helping communities.
  • The user is expected to possess prior programming language knowledge.

13. When Should I Use Selenium IDE?

Selenium IDE is the simplest and easiest of all the tools within the Selenium Package. Its record and playback feature make it exceptionally easy to learn with minimal acquaintances to any programming language. Selenium IDE is an ideal tool for a naïve user.

14. How Many Types of Webdriver APIs are Available in Selenium?

The list of driver classes could be used for browser automation.

  • Android Driver,
  • Chrome Driver,
  • EventFiringWeb Driver,
  • Firefox Driver,
  • HtmlUnit Driver,
  • InternetExplorer Driver,
  • iPhone Driver,
  • iPhoneSimulator Driver,
  • RemoteWebDriver

15. 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

These are the questions you should expect in a selenium interview questions and answers

CSN Team

Comments are closed.

Hey Hi

Don't miss this opportunity

Enter Your Details