28th
May
Selenium Mcq

Selenium Mcq

  • Admin
  • 28th May, 2021
  • 913 Followers

Selenium MCQ Quiz

Following are mostly asked Selenium MCQ test that are designed for professionals like you to crack you interviews. You can take this Selenium online test before appearing to you real interview. This Selenium quiz there are around 30+ multiple choice questions on Selenium with four options.

1) Which of the following language is not supported by Selenium?

  • A. PHP
  • B. C#
  • C. ASP
  • D. Java

2) Which of the following method is used to work with multiple browser windows?

  • A. getMultipleWindows()
  • B. getWindowHandles()
  • C. getWindowhandle()
  • D. Both B & C

3) Which one is a class in Selenium?

  • A. WebDriverWait
  • B. WebElement
  • C. WebDriver
  • D. getPageSource

4) Selenium command for entering text into text boxes?

  • A. sendKey()
  • B. sendKeys()
  • C. sendKey
  • D. SendsKeys()

5) Which of the following is not a wait command in Selenium?

  • A. waitForAlert
  • B. waitForActive
  • C. waitForTitle
  • D. None of these
Download Free : Selenium Mcq PDF

6) Select the odd one using in Selenium ___.

  • A. Pattern Matching
  • B. XPath
  • C. Id
  • D. CSS selector

7) What is the best call for finding multiple elements using XPath?

  • A. findElementsByXPath
  • B. findElementByXpath
  • C. findElementByCssSelector
  • D. None of the above

8) Is Web Driver a component of the Selenium?

  • A. Yes
  • B. No

9) Can Google chrome be supported by Selenium IDE?

  • A. Yes
  • B. No

10) Select the command that will NOT wait for a new page to load before moving onto the next command.

  • A. clickAndWait
  • B. selectAndType
  • C. typeAndWait
  • D. selectAndWait

11) The Selenium ___.

  • A. provides professional customer support
  • B. test Reports are generated automatically
  • C. comes with a built-in object repository
  • D. cannot access elements outside of the web application under test

12) In Selenium variables are stored in ___.

  • A. storedVars
  • B. storedVariables
  • C. VariablesStore
  • D. All of the above

13) Can Unix operating system be supported by Selenium IDE?

  • A. Yes
  • B. No

14) What does the assertTitle checks?

  • A. Page title
  • B. Block title
  • C. Title of an element under focus
  • D. Element title

15) What is Selenium IDE?

  • A. Windows Software
  • B. Firefox Plug-in
  • C. Java Software
  • D. Flash Plug-in

16) ____ is an Advantage of Selenium WebDriver?

  • A. Supports Web based Applications only
  • B. No built-in Result Reporting facility
  • C. Open Source
  • D. None of the above

17) Selenium supports ___ Testing Level.

  • A. Unit Testing
  • B. Integration Testing
  • C. System Testing
  • D. Beta Testing

18) _________ is the use of Firebug in Selenium?

  • A. Programming
  • B. Inspecting Elements
  • C. Parallel Testing
  • D. Cross Browser Testing

19) What is Maven?

  • A. Testing Framework
  • B. Build Automation Tool
  • C. Test Tool
  • D. Programming Language

20) What is TestNG?

  • A. a testing framework inspired from JUnit and NUnit
  • B. programming language
  • C. Plateform
  • D. None of the above

21) Which method to use to get an element from webpage?

  • A. searchElement()
  • B. findElements()
  • C. findElement()
  • D. getElement()

22) Which of the below file we use in Maven project?

  • A. com.xml
  • B. pom.doc
  • C. poc.xml
  • D. pom.xml

Selenium Online Test Questions (Selenium FAQs)

1) What is Selenium?

Selenium is a widely used open-source tool that is used for automating the test on web applications. It is used to validate the performance of web applications across different web browsers and platforms.

2) What can be used to test flex flash applications using Selenium?

Fash testing is used to test the flash-based video, games, movies, etc. applications using Selenium. Selenium, Soap UI, TestComplete, and Test Studio are the testing tools that can be used in flex flash testing.

3) What is the command associated with testing an alert in Selenium?

"assert alert" is associated with testing an alert in Selenium. It is used to check whether the required alert is displayed on the web page.

4) What does the command Verify title do?

Verify title command is a command in Selenium that is used to verify and check the title of the current web page.

5) How is network data capturing done in selenium?

The network data capturing is done using API in the Default Selenium class.

6) How to find element by XPath in Selenium?

We can find element by XPath in Selenium by :

  • Go to the First name tab and right-click >> Inspect.
  • On inspecting the web element, it will show an input tag and attributes like class and id.
  • Use the id and these attributes to construct XPath which, in turn, will locate the first name field.

7) What driver.navigate() do in Selenium?

driver.navigate() is used to navigate any specific or particular URL. It doesn't wait to page load as it maintains browser history and cookies to navigate.

8) How to get text of an element in Selenium?

We can get the text of an element in selenium by using the "getText()" method. It can retrieve and fetch all the inner text present in an element.

9) How to close the Selenium web driver?

We can use quit() as it calls the "driver. dispose" method to close the selenium web driver and ongoing applications on it.

10) What is Selenium Grid?

Selenium Grid allows the execution of WebDriver scripts on remote machines (virtual or real) by routing commands sent by the client to remote browser instances. Selenium Grid is used to run multiple tests across different browsers, operating systems, and machines parallelly.

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
May
Oracle MCQ
01st
May
Powerpoint MCQ
01st
Sep
JSP MCQ
01st
Sep
OOPs MCQ
01st
Jun
Database MCQ
01st
Jul
TensorFlow MCQ