91-9990449935 0120-4256464 |
Selenium Interview QuestionsA list of frequently asked Selenium interview questions and answers are given below. 1) What is test automation or automation testing?Automation testing is used to automate the manual testing. It is a process of automating the manual process to test the application/system under test. It uses separate testing tools which facilitate you to create test scripts which can be executed repeatedly and doesn't need any manual intervention. 2) What are the advantages of automation testing?
3) What is selenium? What are the different components of selenium?Selenium is one of the most popular automated testing suites. It is browser automation tool which lets you automated operations like click, type and selection from a drop down of a web page. It is designed to support and encourage automation testing of functionalities of web based applications and a wide range of browsers and platforms. It is one of the most accepted tools amongst the testing professional due to its existence in the open source community. Selenium is not just a single tool rather than it is a package of several testing tools and that?s why it is referred as a suite. Each of these tools is designed to cater different testing and test environment requirement. 4) What is Selenium 1.0?Selenium 1.0 is popularily known as Selenium Remote Control (Selenium RC). It is a library available in wide variety of languages. The main reason to use Selenium RC was that Selenium IDE was incapable to execute tests in browsers other than Selenium IDE and the limitation of language Selenese used in Selenium IDE. 5) What is Selenium IDE?Selenium IDE is a firefox plug-in. It is used to record and replay tests in firefox browser. It is used only with firefox browser. 6) What is selenium 2.0?Selenium 2.0 is a tool which is a combination of web testing tools Selenium RC and WebDriver. 7) Why is selenium selected as a test tool?Selenium is used as a testing tool because:
8) What are selenium supporting testing types?Selenium supports two types of testing:
9) What are the limitations of selenium?Selenium has following limitations:
10) What is selenese?Selenese is a lanuage which is used for writing test script in selenium IDE. 11) Describe the different types of locators in Selenium?Locator is an address which identifies a web element uniquely within the web page. There are different types of locators in Selenium to identify web elements accurately and precisely. These are:
12) What is an Xpath?Xpath is used to locate a web element based on its XML path. It can be used to locate HTML elements. 13) Which is the latest Selenium tool?The latest Selenium tool is WebDriver. 14) What are the different types of Drivers that WebDriver contains?These are the different drivers available in WebDriver:
15) What is Selenium Grid?Selenium Grid facilitates you to distribute your tests on multiple machines and all of them at the same time. So, you can execute tests on Internet Explorer on Windows and Safari on Mac machine using the same text script. It reduces the time of test execution and provides quick feedback. 16) Where the result is seen of Test Execution in Selenium IDE?The result of test execution is displayed in a Log Window in Selenium IDE. 17) Can you edit tests in Selenium IDE?Yes, tests in Selenium IDE can be edited. There are two ways to edit tests in Selenium IDE.
18) Can you use html id and name while using Selenium IDE?Yes, You can use html id and name as it is available in Selenium IDE. 19) What are the WebDriver supported Mobile Testing Drivers?WebDriver supported "mobile testing drivers" are:
20) What are the popular programming languages supported by Selenium WebDriver to write Test Cases?
21) What is the difference between assert and verify commands?Assert: Assert command checks if the given condition is true or false. If the condition is true, the program control will execute the next phase of testing, and if the condition is false, execution will stop and nothing will be executed. Verify: Verify command also checks if the given condition is true or false. It doesn't halts program execution i.e. any failure during verification would not stop the execution and all the test phases would be executed. 22) 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 relative path. 23) How to type in a text box using Selenium?To type in a text box, we use sendKeys("String to be entered") to insert string in the text box. Syntax: 24) What is JUnit?JUnit is an open source testing framework for java applications. It is introduced by Apache. 25) What are the four parameters that you need to pass in Selenium?The four parameters that you have to pass in Selenium are:
26) How can you "submit" a form using Selenium ?27) What is the difference between close() and quit()?The close() method closes the current browser only whereas quit() method closes all browsers opened by WebDriver. |