Olete.in
Articles
Mock Tests
🧪 Selenium MCQ Quiz Hub
Selenium Mcq Question Set 1
Choose a topic to test your knowledge and improve your Selenium skills
1. If you want to validate that a button has appeared on a page, which two commands would be the best two to use?
verifyTextPresent/assertTextPresent
verifyElementPresent/assertElementPresent
verifyAlertPresent/assertAlertPresent
verifyAlert/assertAlert
2. If an element got added after the page has loaded what command would you use to make sure the test passed in the future?
waitForElementPresent
pause
assertElementPresent
None of the mentioned
3. Pick two from the following if you wanted do a partial match on an attribute on an element from the beginning of the value:
contains()
starts-with()
ends-with()
A & B
4. What is the best call for finding multiple elements using XPath?
findElementByXpath
findElementsByXPath
findElementByCssSelector
Both B & C
5. Which of the following expression is used for "anything"?
**
.*
*.
*+
6. Select the odd one using in Selenium
Pattern Matching
XPath
Id
CSS selector
7. Which of the following is not a wait command in Selenium?
waitForActive
waitForAlert
waitForTitle
None of these
8. Selenium command for entering text into text boxes?
sendKeys()
sendKey()
sendKey
SendsKeys()
9. Which of the following language is not supported by Selenium
PHP
C#
ASP
Java
10. Which of the following method is used to work with multiple browser windows?
getMultipleWindows()
getWindowHandles()
getWindowhandle()
Both B &C
11. Which one is a class in Selenium ?
WebDriverWait
WebElement
WebDriver
getPageSource
12. Selenium method to get content which is inside any HTML tags?
getText()
getValue()
get()
getAttribute()
13. What is the best element locator in selenium webdriver?
ID
NAME
xPATH
CLASSPATH
14. The test language usually used in Selenium is ________
PHP
Python
JavaScript
none of the above
15. The term AJAX expands to _______
Asynchronous Java and XML
Asynchronous JavaScript and XML
Accumulated Java and XML
none of the above
16. The term JSON refers to _______
JavaScript Object Notation
Java Object Notation
Java Object Naming
none of the above
17. Selenium tests ______
DOS applications
Browser-based applications
GUI applications
none of the above
18. Selenium variables are stored in ______
storedVars
storedVariables
VariablesStore
None of the above
19. Which selenium command check whether specific text exists somewhere on the page ?
verifyTextPresent
verifyTextPresent
CheckTextPresent
VerifyPresentText
20. What does the term CSS refers to ?
Cascade Style Sheets
Cascading Style Sheets
Clear Style Sheets
Catering Style Sheets
21. What is Selenium IDE ?
Windows Software
Firefox Plug-in
Java Software
Flash Plug-in
22. What is called that scale for large test suites or test suites that must be run in multiple environments?
Selenium-Grid
Selenium RC
Selenium Web driver
Selenium NG
23. Where is XPath used in ?
XML documents
XML documents
MS-Excel documents
MS-PowerPoint documents
24. What does the term DOM refers to ?
Dynamic Object Model
Document Object Model
Data Object Model
Document Flow Object Model
25. What does the term regex expands to ?
Registered Expression
Regular Expression
Regression Expression
Regional Expression
26. Which label is used as prefix pattern to specify a globbing pattern parameter for a Selenese command ?
pattern
glob
regex
none of the mentioned
27. What is a test suite made of ?
Test packs
Tests
Test blocks
Test pattern
28. What does the assertTitle checks ?
Element title
Page title
Block title
Title of element under focus
29. Select the component which is NOT part of Selenium suite.
Selenium IDE
Selenium RC
SeleniumGrid
Selenium Web
30. Select the language which is NOT supported by the Selenium RC.
ASP
Java
C#
PHP method
31. Is Web Driver a component of the Selenium?
No
Yes
all of the above
None of the mentioned
32. Selenium IDE stands for
Selenium Intialization Development Environment
Selenium Interrelated Development Environment
Selenium Integrated Development Environment
Selenium Information Development Environment
33. Select the Browser which is supported by Selenium IDE
Google chrome
Opera mini
Mozilla Firefox
Internet Explorer
34. Select the operating system which is NOT supported by Selenium IDE.
Unix
Linux
Windows
Solaris
35. The Web driver is used
To execute tests on the HtmlUnit browser.
To design a test using Selenese
To quickly create tests
To test a web application against Firefox only.
36. The Selenium IDE is used
To create customized test results.
To deploy your tests across multiple environments using Selenium Grid
To test with HTMLUnit
To test a web application against Firefox only.
37. The Selenium RC is used
To run your test against different browsers (except HtmlUnit) on different operating systems.
To create tests with little or no prior knowledge in programming.
To test a web application against Firefox only.
To run a huge test suite, that can be executed on multiple machines.
38. Out of the following which can only test web applications
QTP
Selenium RC
all of the above
None of the mentioned
39. Select the command which is NOT a type of assertion in Selenium IDE.
Assert
Verify
WaitFor
Wait
40. Select the method which selects the option at the given index.
selectByIndex()
selectIndex()
selectedByIndex()
selectByIndexes()
41. The Selenium can
access controls within the desktop
both web and desktop applications
only test web applications
None of the mentioned
42. Can Google chrome be supported by Selenium IDE?
Yes
no
all of the above
None of the mentioned
43. Can Unix operating system be supported by Selenium IDE?
No
Yes
all of the above
None of the mentioned
44. Which command can be used to enter values onto text boxes?
sendsKeys()
sendKey()
sendKeys
sendKeys()
45. Select the language which is supported by The Selenium Web Driver
Perl
Sql
ASP
Cobol
46. Which Selenium component supports All Operating System?
Selenium Generator
Selenium IDE
Selenium WebDriver
None of the mentioned
47. Select the command in Selenium IDE used to open a page using the URL.
OpenRecord
Open
OpenText
OpenTable
48. In case of Selenium IDE, the Source view shows your script in
DHTML format
J2EE format
XML format
HTML format.
49. The Actions commands
are commands that directly interact with page elements.
are commands that allow you to store values to a variable.
are commands that verify if a certain condition is met.
All of the Mentioned
50. Select the command which is used to check the presence of a certain element.
verifyTable
verifyTitlePresent
verifyTextPresent
verifyElementPresent
Submit