Selenium Interview Questions And Answers

Selenium interview questions and answers on advance and basic Selenium with example so this page for both freshers and experienced condidate. Fill the form below we will send the all interview questions on Selenium also add your Questions if any you have to ask and for apply in Selenium Tutorials and Training course just send a mail on in detail about your self.

Top Selenium interview questions and answers for freshers and experienced

What is Selenium ?

Answer :

Questions : 1 :: What is Automation Testing?

Automation testing or Test Automation is a process of automating the manual process to test the application/system under test. Automation testing involves use to a separate testing tool which lets...View answers

Questions : 2 :: What are the benefits of Automation Testing?

Benefits of Automation testing are: Supports execution of repeated test cases Aids in testing a large test matrix Enables parallel execution Encourages unattended execution Improves accuracy...View answers

Questions : 3 :: Why should Selenium be selected as a test tool?

Selenium is free and open source have a large user base and helping communities have cross Browser compatibility (Firefox, chrome, Internet Explorer, Safari etc.) have great platform...View answers

Questions : 4 :: What is Selenium? What are the different Selenium components?

Selenium is one of the most popular automated testing suites. Selenium is designed in a way to support and encourage automation testing of functional aspects of web based applications and a wide...View answers

Questions : 5 :: What are the testing types that can be supported by Selenium?

Selenium supports the following types of testing: Functional Testing Regression Testing

Questions : 6 :: 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 Bar code readers cannot be...View answers

Questions : 7 :: 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 makes it exceptionally easy to learn with minimal acquaintances to any...View answers

Questions : 8 :: What is Selenese?

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

Questions : 9 :: What are the different types of locators in Selenium?

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...View answers

Questions : 10 :: What is difference between assert and verify commands?

Assert: Assert command checks whether the given condition is true or false. Let’s say we assert whether the given element is present on the web page or not. If the condition is true then the...View answers

Questions : 11 :: What is an Xpath?

xpath is used to locate a web element based on its XML path. XML stands for Extensible Markup Language and is used to store, organize and transport arbitrary data. It stores data in a key-value pair...View answers

Questions : 12 :: What is the difference between "/" and "//" in Xpath?

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...View answers

Questions : 13 :: What is Same origin policy and how it can be handled?

The problem of same origin policy disallows to access the DOM of a document from an origin that is different from the origin we are trying to access the document. Origin is a sequential...View answers

Questions : 14 :: 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...View answers

Questions : 15 :: 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...View answers

Questions : 16 :: Which is the latest Selenium tool?


Questions : 17 :: How do I launch the browser using WebDriver?

The following syntax can be used to launch Browser:WebDriver driver = new FirefoxDriver();WebDriver driver = new ChromeDriver();WebDriver driver...View answers

Questions : 18 :: What are the different types of Drivers available in WebDriver?

The different drivers available in WebDriver...View answers

Questions : 19 :: What are the different types of waits available in WebDriver?

There are two types of waits available in WebDriver! Implicit Wait Explicit Wait Implicit Wait: Implicit waits are used to provide a default waiting time (say 30 seconds)...View answers

Questions : 20 :: How to type in a textbox using Selenium?

User can use sendKeys(“String to be entered”) to enter the string in the textbox. Syntax:WebElement username = drv.findElement(“Email”));// entering...View answers

Questions : 21 :: 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...View answers

Questions : 22 :: How can we get a text of a web element?

Get command is used to retrieve the inner text of the specified web element. The command doesn’t require any parameter but returns a string value. It is also one of the extensively used...View answers

Questions : 23 :: How to select value in a dropdown?

Value in the drop down can be selected using WebDriver’s Select class. Syntax: selectByValue:Select selectByValue...View answers

Questions : 24 :: What are the different types of navigation commands?

Following are the navigation commands:navigate().back() – The above command requires no parameters and takes back the user to the previous webpage in the web browser’s...View answers

Questions : 25 :: How to click on a hyper link using linkText?

driver.findElement(By.linkText(“Google”)).click(); The command finds the element using link text and then click on that element and thus the user would be re-directed to the...View answers

Questions : 26 :: How to handle frame in WebDriver?

An inline frame acronym as iframe is used to insert another document with in the current HTML document or simply a web page into a web page by enabling nesting. Select iframe by...View answers

Questions : 27 :: When do we use findElement() and findElements()?

findElement(): findElement() is used to find the first element in the current web page matching to the specified locator value. Take a note that only first matching element would be...View answers

Questions : 28 :: What is the difference between driver.close() and driver.quit command?

close(): WebDriver’s close() method closes the web browser window that the user is currently working on or we can also say the window that is being currently accessed by the WebDriver....View answers

Questions : 29 :: Can Selenium handle windows based pop up?

Selenium is an automation testing tool which supports only web application testing. Therefore, windows pop up cannot be handled using...View answers

Questions : 30 :: How can we handle web based pop up?

WebDriver offers the users with a very efficient way to handle these pop ups using Alert interface .There are the four methods that we would be using along with the Alert...View answers

Questions : 31 :: How can we handle windows based pop up?

Selenium is an automation testing tool which supports only web application testing, that means, it doesn’t support testing of windows based applications. However Selenium alone...View answers

Questions : 32 :: How to assert title of the web page?

//verify the title of the web pageassertTrue(“The title of the window is incorrect.”,driver.getTitle().equals(“Title of the...View answers

Questions : 33 :: How to retrieve css properties of an element?

The values of the css properties can be retrieved using a get() method: Syntax:driver.findElement(“id“)).getCssValue(“name of css...View answers

Questions : 34 :: What is Junit?

Junitis a unit testing framework introduced by Apache. Junit is based on...View answers

Questions : 35 :: What are Junit annotations?

Following are the Junit Annotations: @Test: Annotation lets the system know that the method annotated as @Test is a test method. There can be multiple test methods in a single test...View answers

Questions : 36 :: What is TestNG and how is it better than Junit?

Testing is an advance framework designed in a way to leverage the benefits by both the developers and testers. With the commencement of the frameworks, JUnit gained an enormous popularity...View answers

Questions : 37 :: What is a framework?

Framework is a constructive blend of various guidelines, coding standards, concepts, processes, practices, project hierarchies, modularity, reporting mechanism, test data injections etc. to...View answers

Questions : 38 :: What are the advantages of Automation framework?

Advantage of  Test Automation framework Reusability of code Maximum coverage Recovery scenario Low cost maintenance Minimal manual intervention Easy...View answers

Questions : 39 :: What are the different types of frameworks?

Below are the different types of frameworks: Module Based Testing Framework: The framework divides the entire “Application Under Test” into number of logical and isolated...View answers

Questions : 40 :: Can WebDriver test Mobile applications?

WebDriver cannot test Mobile applications. WebDriver is a web based testing tool, therefore applications on the mobile browsers can be...View answers

Questions : 41 :: Can captcha be automated?

No, captcha and bar code reader cannot be...View answers

Questions : 42 :: What is Object Repository? How can we create Object Repository in Selenium?

Object Repository is a term used to refer to the collection of web elements belonging to Application Under Test (AUT) along with their locator values. Thus, whenever the element is required...View answers

Questions : 43 :: What is Selenium 2.0 ?

Web testing tools Selenium RC and WebDriver are consolidated in single tool in Selenium...View answers

Questions : 44 :: List out the test types that are supported by Selenium?

For web based application testing selenium can be used The test types can be supported are a)      Functional b)      Regression For...View answers

Questions : 45 :: Explain the difference between single and double slash in X-path?

Single slash ‘/ ’ Single slash ( / ) start selection from the document node It allows you to create ‘absolute’ path expressions Double Slash ‘//...View answers

Questions : 46 :: List out the technical challenges with Selenium?

Technical challenges with Selenium are Selenium supports only web based applications It does not support the Bitmap comparison For any reporting related capabilities have to depend on...View answers

Questions : 47 :: What is the difference between type keys and type commands ?

TypeKeys() will trigger JavaScript event in most of the cases whereas .type() won’t. Type key populates the value attribute using JavaScript whereas .typekeys() emulates like actual...View answers

Questions : 48 :: What is the difference between verify and assert commands?

Assert:  Assert allows to check whether an element is on the page or not. The test will stop on the step failed, if the asserted element is not available. In other words, the test...View answers
More Question

Ask your interview questions on Selenium

Write Your comment or Questions if you want the answers on Selenium from Selenium Experts
Name* :
Email Id* :
Mob no* :
Comment* :

--------- Tutorials ---