Advance Selenium Interview Questions and Answers

Selenium Interview Questions: Selenium refers to an open-source tool utilized for automating testing; this enables one to test website apps across some ranges of browsers. Selenium was introduced when manual testing had begun to pose numerous challenges. And there is a great demand for some method that computerizes testing procedures. Selenium interview questions article contains some of the common questions questioned when in a job interview for Selenium.

Advance Selenium Interview Questions and Answers


What’s Selenium & what’s composed of?

This is a set of tools for use on programmed web testing. It’s comprised of

WebDriver & RC

This provides APIs for some varieties of languages, including Java, PHP, .NET, etc. With more of these browsers, RC & Webdriver works.

Selenium IDE:

This is a tool that’s used for recording & playing back. It’s a plugin for firefox.


With the assistance of Grid, one can allocate tests on more machines so can operate testing parallel that assists in cutting down the period needed for running at browser test-suites

What’s automation testing?

This is a procedure of automating manual testing of application below test or system below test. This includes the participation of tools for testing, which helps one in creating test scripts that can be utilized repeatedly minus human intervention.

List some of the popular tools utilized for testing automation

  • Rational Robot
  • IBM Rational-Functional Tester
  • Selenium
  • HP Unified Functional Testing

Why should one use Selenium?

The immense support from the community & the client base is big


Cross-browser friendly (Firefox, Edge, Chrome, etc.)

All-day or regular repository developments

Supports more programming languages including Python, Perl, Java, etc.)

Supports distributed testing

What’s the significant difference between Selenium 3.0 & Selenium 2.0?

Selenium 2.0 refers to a tool that makes the development of computerized tests for website applications simpler. It signifies the merger of the original Selenium project with the WebDriver project. Selenium-RC got denounced since the merge. Moreover, it was utilized for compatibility backward.

Selenium 3.0 refers to the extended form of Selenium 2.0. It’s inherently compatible backward & doesn’t involve Selenium-RC. The new version comes along with more bug fixes & improved stability.

What are testing types are supported by Selenium?

Selenium supports the various testing types

  • Regression Testing
  • Functional Testing

When should one utilize Selenium IDE?

Selenium IDE refers to the most straightforward & most effortless of every tool within the Selenium Package. This record & playback feature makes it outstandingly simple to learn using minimal connections to every programming language. Moreover, Selenium IDE is a suitable tool for some naïve users.

What’s Selenese, and explain the different kinds of Selenium commands

Language utilized for composing test scripts at Selenium-IDE is known as Selenese. It’s a group of commands used in testing a web system or application. Selenium commands can be shared into three major categories:


Commands that enables the client to keep values being user-defined variable.


Commands interrelating directly with web apps.


They allow a comparison of the current state of the app with its predictable state.

What’s an XPath?

This is utilized in locating a web element depending on the XML path. XML is a short form for Extensible Markup Language. It’s being used for keeping, transport, and organizes arbitrary information. It supports data in some key-value pair that’s very similar to tags on HTML. All these are markup languages & because they are identical, XPath is utilizing to locate HTML elements.

The essential behind finding elements utilizing XPath is traversing different in-between parts across the whole page, allowing the client to get a piece with reference to a different element.

How will one get an element with the help of Selenium?

At Selenium all the control or object in a web page is denoted as elements. There are various ways of finding an element on a website page. These includes

  • Name
  • ID
  • Tag
  • PartialLink Text
  • CSS
  • Attribute
  • Link text
  • Xpath etc

What are four parameters you’ve to pass at Selenium?

Four parameters that you’ve to pass at Selenium includes

  • Port Number
  • Host
  • Browser
  • URL

What are heightened browsers privileges?

The function of intensified privileges is the same as Proxy Injection. It enables websites to perform something that isn’t normally permitted. The major difference is the browser is launched in some special mode known as heightened privileges. Through using the web browser mode, Selenium core opens the AUT straight & also reads/writes the content minus passing the entire AUT via Selenium server RC.

What’s an Object Repository?

This is a vital entity in every UI automation that enables a tester to keep every object which will be utilized in scripts in one/more central locations instead of scattered on every test script.

What’s the difference is in between double slash & single slash in XPath.

Double slash (//): It’s utilized in creating an XPath using a relative path. With this case, XPath begins selection from any place within a document.

Single slash (/): This is utilized in creating an XPath using an absolute path. With this case, XPath would begin selection from the document’s start node.

What’s the difference is there in type commands & type keys?

TypeKeys() triggers JavaScript events, & type() won’t. Also TypesKeys collects various value attributes utilizing JavaScript and type commands copy a real client typing.

What’s the variance between findElements() & findElement()?


Uses the offered locating mechanism to get all elements within the current page & return a list of every web element.

findElement() :

Uses the provided locating mechanism to get the 1st element within the current page & returns one web element.

Can Selenium deal with a windows-centered pop-up?

Selenium is a computerized testing tool that operates with just web apps. Thus, the pop-up at windows can’t be handled using Selenium. But, through integrating with 3rd party tools, this issue is overcome.

What are various kinds of waits accessible in WebDriver?

The two kinds of waits accessible in WebDriver include:

Explicit and Implicit Wait

Explicit Wait: It’s used in halting execution up to when a particular state is met or when the maximum time elapses. Explicit waits remain instantiated at a specific instance, whereas implicit waits aren’t.

Implicit wait: this wait kind is utilized in giving a default time for waiting in between sequential test steps thru the entire test script. Therefore, the subsequent test step would just be accomplished when 30 seconds are finished after achieving the earlier test step.

In Selenium, what are breakpoints & start points?

Start points: these are points where execution needs to begin. Starting points can be utilized when running a test script from the center of code or on a breakpoint.

Breakpoints: This is used to stall the execution of the test. Execution stops when a breakpoint is affected, & this will assist us in checking if the code is operating well or not.

How does one identify the object at Selenium?

One can utilize the isElementPresent/string locator in finding an object at Selenium. This takes locator as an argument &, if found, takes back a Boolean.

How can the message in the alert box retrieve?

storeAlert() rule is used in retrieving the message from alert pop-up & keeps it in some variable.

Explain how one handles colors at web driver?

Handling colors at web driver, one uses getCssValue(arg0) command to get colors through transfer ‘color’ string like an argument.

What’s Page Object Model (POM)?

All webpage of the application contains an equivalent page class that’s in charge of locating web elements & doing actions at them. Page-Object Model refers to a design pattern that assists in creating object-repositories for web elements. The POM develops code reusability & readability. Numerous test cases run on the object repository.

Can one automate Captcha?

No, Selenium can’t computerize Captcha. The entire idea of Captcha is to ensure that bots & automated programs don’t access delicate information. This is the reason why Selenium can’t automate it. Automation test professionals have to type the Captcha manually as other fields are filled automatically.

In IDE Selenium, how does one debug test?

Insert some breakpoint location from the point one needs to execute the test stepwise

  • Run test case
  • Pause execution at a particular breakpoint
  • Click on the blue button to move on with the next statement
  • Click at the “Run” key to continue completing all commands

When does one utilize AutoIT?

Selenium is utilized just to automate website applications. But if one wants to manage, handle or maintain the HTML pop-ups, GUI then, we require AutoIT.

What are the various kinds of Drivers accessible in WebDriver?

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

How can one find if the element is shown on screen?

WebDriver helps the client with the next methods to checking the view of web elements. Web elements include labels, buttons, checkboxes, drop boxes, radio buttons, etc.

  • isSelected()
  • is displayed()
  • isEnabled()

What’s meant by the exception test in relation to Selenium?

An exception-test refers to a test that needs an exception thrown inside some test class. It requires @Test-annotation followed by the expected-exception name in brackets.

What’s the Same-origin Policy?

‘Same-origin Policy’ is initiated for security details.

Same Sign-Policy

This ensures that the content of the site will not be accessible through a script from a different site.

As the policy needs, any code that is loaded within the browser can just operate within the website’s domain.

To prevent this same-origin rule, a proxy injection technique is used. At proxy injection mode, Selenium Server tricks the browser into being a real HTTP-URL. It performs like some client-configured HTTP (hypertext transfer protocol) proxy that lies between web browser plus the app below test plus then masks-AUT below some fictional URL.


With this guidance on Selenium interview questions, you shouldn’t have a hard time with the panel. Moreover, you should check out more questions as there aren’t all.

Python vs JavaScript Differences

Python Interview Questions


Try Catch JavaScript?

Join Telegram Join Whatsapp

Leave a Comment