Top 17 Interview Questions and Answers On Selenium Webdriver

What is the advantage of utilizing Selenium Grid?

Utilizing Selenium Grid we will have the capacity to execute the experiments in parallel and remotely in another machine by arranging a center point and a hub.

We can arrange a solitary center point and various hubs from different machines which are associated in LAN Network.

Center point will go about as a Server and disperses the experiments to various hubs which are arranged to a specific center point.

What is a webdriver and its composes?

Selenium webdriver is a question arranged apparatus which comprises of different classes and namespaces with which we can perform different activities on the web components or controls.

To Execute the experiments, every program has their own drivers to execute.

On the off chance that we need to execute experiment in Chrome, we have a Chrome driver.

On the off chance that we need to execute experiment in Internet Explorer, we have an Internet Explorer driver.

On the off chance that we need to execute experiment in Safari, we have a Safari driver.

On the off chance that we need to execute experiment in Firefox, we have a Gecko driver.(Supported just for rendition 47+)

On the off chance that we need to execute experiment in Edge, we have an Edge driver.

How to dispatch a program in Selenium?

Utilizing Selenium Automation Tool we can dispatch the program in different programs like Chrome, Firefox, Edge, Safari, Internet Explorer and so on. In the event that we need to execute it first we have to download their particular driver from the authority website. and unfasten them and place it in some envelope.

Distinctive activities on a component in Selenium

We can perform different activities or activities to a control like enter the esteem or tapping the catch or double tap and so on.

What is the distinction amongst findElement() and FindElements() in Selenium?

On the off chance that we need to discover specific component; i.e., a solitary catch or textbox or dropdown or some other control then we discover it by FindElement() technique like beneath

For single component on a website page we utilize FindElement() strategy, for various components on a page with same control properties we utilize FindElements() technique which gets a rundown of IwebElements.

What is the contrast amongst Quit() and Close()?

Both are the techniques for an IwebDriver interface.

driver.close() is utilized when we need to close the specific windows or ebb and flow window in which we play out the execution of experiments.

driver.quit() is utilized when we need to close all the program windows which were propelled or opened by the ebb and flow webdriver.

Which programmings are upheld in Selenium?

JAVA, C#, PHP, Perl, JavaScript and so on.

What are the stages upheld in Selenium?

Windows(including Windows-10 for Edge program), Linux, MacOS and so on.

What are Assertion and distinctive kinds of Assertions are utilized in Selenium?

Declaration is utilized to confirm or to check whether the given esteem is available on the site page or not, we have different kind of Assertions like

  • Assert Text

Affirm content is utilized to Assert the esteem Available in the textbox.

  • AssertElementPresent

Attest Elementpresent is utilized to check whether a component is shown on the site page or concealed state.

  • AssertBodyText

It is utilized to check whether the given info exists on the site page.

  • asserted

It is utilized to check/Assert the id of a component.

  • Assert Title

It is utilized to check the title of the website page.

What are a center and hub?

As we examined before, Hub goes about as a Server or center point. We can arrange numerous hubs to a center. Center point circulates the experiments we need to execute on different hubs.

Assume we have 10 test cases to execute on two unique hubs designed to a center point like chrome as one hub and firefox as another hub to a solitary center point, the center point’s obligation is to appropriate 10 test cases with both the arranged hub as 5 in chrome and 5 in Firefox.

What is bump record and how would we arrange center point and hub?

A container document is a Java Execute record which is utilized for making the center point.

The accompanying is the procedure for arranging center point and Node.

Prior to arranging center point, we need Java runtime introduced on our machine. Without Java runtime, we can’t design the center point.

When Java runtime is introduced into your machine, you can download the Jar record from the official site.

Java – jolt “Name of the container record” – part center point, this charge will design center point.

The above order will design the hub.

Distinctive kinds of special cases tossed in Selenium

  • NoSuchElementException
  • StaleElementReferenceException
  • ElementNotVisibleException
  • TimeoutException
  • ElementNotSelectableException

What is the most recent variant of Selenium and what are its highlights?

Selenium 3.0 is the most recent form accessible in the market which was discharged in June 2016. If it’s not too much trouble allude to my past article which is on Selenium 3.0.

What are the parameters or contentions in Selenium?

  • Host

A host is the IP address of the hub/customer machine where we need to execute the experiment.

  • Port Number

The default port number is 4444, on the off chance that we don’t dole out any port number it takes of course 4444 or we can set other port numbers like 5555, 5556 and so forth.

  • Browser

It characterizes where we have to execute the experiment on which program (illustration Chrome, Firefox, IE, edge ) and so on.

  • URL

It characterizes the URL of the website page.

How to indicate sit tight time for a control?

  1. WebDriver driver = new FirefoxDriver();
  2. driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
  3. [OR]
  4. Thread.sleep(2000 seconds);

Does Selenium bolster testing on portable based applications?

Selenium bolsters versatile application testing, similar to iOS, Android and so on.

Would we be able to deal with Windows-based pop-ups utilizing Selenium?

Indeed, Selenium underpins the two Windows and Web pop-ups.


What is the utilization of the GetAttribute() technique in Selenium?

On the off chance that we need to get to the properties of a control or component, for example, id, name , class , Tagname and so on, we utilize GetAttribute() technique.

  1. element.getAttribute(“id”)
  2. element.getattribute(“class”)

Step by step instructions to tap on Login catch utilizing selenium ? or webelement.submit() is utilized for presenting the shape.

How to augment a window in Selenium?

Subsequent to propelling the program, in the event that we need to amplify the page we utilize the underneath code.

driver.manage().window().maximize(); By default IE and Firefox are augmented, yet for Chrome, we have to amplify that utilizing the above code.


Infocampus is extraordinary compared to other Institute for  selenium training in Marathahalli . Contact 08884166608 to go to free demo classes in that will be accommodated 4 days. Visit  for finish subtle elements on Best training institute in bangalore

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Si prega di attivare i Javascript! / Please turn on Javascript!

Javaskripta ko calu karem! / Bitte schalten Sie Javascript!

S'il vous plaît activer Javascript! / Por favor, active Javascript!

Qing dakai JavaScript! / Qing dakai JavaScript!

Пожалуйста включите JavaScript! / Silakan aktifkan Javascript!