Download PDF
Free download in PDF Selenium Multiple Choice Questions(MCQs) and Answers for competitive exams. These short objective type questions with answers are very important for Board exams as well as competitive exams. These short solved questions or quizzes are provided by Gkseries.
(1)
Selenium IDE stands for
[A]
Selenium Integrated Development Environment
[B]
Selenium Information Development Environment
[C]
Selenium Interrelated Development Environment
[D]
Selenium Initialization Development Environment
Answer: Selenium Integrated Development Environment
(2)
Select the Browser which is supported by Selenium IDE
[A]
Internet Explorer
[B]
Google Chrome
[C]
Mozilla Firefox
[D]
Opera mini
(3)
The Web driver is used
[A]
To test a web application against Firefox only.
[B]
To design a test using Selenese
[C]
To execute tests on the HtmlUnit browser.
[D]
To quickly create tests
Answer: To execute tests on the HtmlUnit browser.
(4)
The Selenium IDE is used
[A]
To test with HTMLUnit
[B]
To test a web application against Firefox only.
[C]
To deploy your tests across multiple environments using Selenium Grid
[D]
To create customized test results.
Answer: To test a web application against Firefox only.
(5)
The Selenium RC is used
[A]
To run a huge test suite, that can be executed on multiple machines.
[B]
To run your test against different browsers (except HtmlUnit) on different operating systems.
[C]
To test a web application against Firefox only.
[D]
To create tests with little or no prior knowledge in programming.
Answer: To run your test against different browsers (except HtmlUnit) on different operating systems.
(6)
Select the method which selects the option at the given index.
[A]
selectByIndexes()
[B]
selectIndex()
[C]
selectByIndex()
[D]
selectedByIndex()
(7)
The Selenium
[A]
Comes with a built-in object repository
[B]
Test Reports are generated automatically
[C]
Cannot access elements outside of the web application under test
[D]
Provides professional customer support
Answer: Cannot access elements outside of the web application under test
(8)
In the case of Selenium IDE, the Source view shows your script in
[A]
XML format
[B]
HTML format
[C]
J2EE format
[D]
DHTML format
(9)
Select the command which is used to check the presence of a certain element.
[A]
verifyElementPresent
[B]
verifyTextPresent
[C]
verifiable
[D]
verifyTitlePresent
Answer: verifyElementPresent
(10)
Select the command which is used to print a string value or a variable in Selenium IDE.
[A]
The ‘echo’ command
[B]
The ‘printr’ command
[C]
The ‘print’ command
[D]
The ‘display’ command
Answer: The ‘echo’ command
(11)
Which component of Selenium can create customized test results?
[A]
Selenium Grid
[B]
Selenium RC
[C]
Web driver
[D]
Selenium IDE
(12)
Select the command which is used to pause execution until the specified element becomes present.
[A]
waitForFieldPresent
[B]
waitForElementPresent
[C]
waitForPagePresent
[D]
waitForTablePresent
Answer: waitForElementPresent
(13)
Select the command that will NOT wait for a new page to load before moving onto the next command.
[A]
selectAndWait
[B]
typeAndWait
[C]
selectAndType
[D]
clickAndWait
(14)
Select the syntax to locate an element using inner text.
[A]
css=tag:attributes(“inner text”)
[B]
css=tag:class(“inner text”)
[C]
css=tag:contains(“inner text”)
[D]
css=tag:value(“inner text”)
Answer: css=tag:contains(“inner text”)
(15)
What is TestNG?
[A]
TestNextGenerations
[B]
TestNextGeneration
[C]
TestNewGenerlization
[D]
TestNewGeneration
Answer: TestNextGeneration
(16)
Select the variation which finds elements based on the driver’s underlying CSS selector engine in Web driver Selenium.
[A]
By.cssSelector
[B]
By.Select
[C]
By.cssSelection
[D]
By.cssSelected
(17)
Select the variation which locates elements by the value of the “name” attribute in Web driver Selenium
[A]
By.nametags
[B]
By.nametag
[C]
By.name
[D]
By.tagname
(18)
Select the Get command which fetches the inner text of the element that you specify in Web driver Selenium.
[A]
getText()
[B]
get_inner_Text()
[C]
get_in_Text()
[D]
getinnerText()
(19)
Which Navigate command takes you forward by one page on the browser’s history in Web driver Selenium.
[A]
navigate().forward()
[B]
navigate_forword()
[C]
navigate()_forward()
[D]
navigate.forward()
Answer: navigate().forward()
(20)
Method which selects the option which displays the text matching the parameter passed to it
[A]
selectByVisibleText()
[B]
select_ByVisibleText()
[C]
select_VisibleText()
[D]
selectVisibleText()
Answer: selectByVisibleText()
Please share this page