Top 10

Selenium Interview Questions

What is Selenium?

Selenium is a portable framework for software testing. Selenium tool facilitates with a playback tool for authoring functional tests without the need to learn a test scripting language. Selenium is one of the most widely used open source Web UI (User Interface) automation testing suite.

What is test automation or automation testing?

Automation testing uses automation tools to write and execute test cases, no manual involvement is necessary for executing an automated test suite. Testers prefer automation tools to write test scripts and test cases and then group into test suites.

What are the advantages of automation testing?

– It supports the execution of repeated test cases. – It facilitates parallel execution. – It aids in testing a large test matrix. – It improves accuracy because there are no chances of human errors. – It saves time and money.

What are the different components of Selenium?

1. Selenium Integrated Development Environment (IDE) 2. Selenium Remote Control (Now Deprecated) 3. WebDriver 4. Selenium Grid

List some of the test types that are supported by Selenium.

– Functional Testing – Regression Testing – Sanity Testing – Smoke Testing – Responsive Testing – Cross Browser Testing – UI testing (black box) – Integration Testing

What are the various ways of locating an element in Selenium?

1. Id 2. XPath 3. CSS selector 4. className 5. tagName 6. name 7. link text 8. partialLinkText

What is an XPath?

Xpath or XML path is a query language that is used for selecting nodes from XML documents. Also, it is one of the locators supported by Selenium Webdriver.

What is the difference between "/" and "//" in XPath?

Single Slash "/": Single slash is used to create XPath with absolute path. Double Slash "//": Double slash is used to create XPath with the relative path.

What are the popular programming languages supported by Selenium WebDriver to write Test Cases?

– JAVA – PHP – Python – C# – Ruby – Perl

What are the WebDriver supported Mobile Testing Drivers?

– AndroidDriver – IphoneDriver – OperaMobileDriver