Olete.in
Articles
Mock Tests
🧪 Selenium MCQ Quiz Hub
Selenium Mcq Question Set 3
Choose a topic to test your knowledge and improve your Selenium skills
1. What does the term DOM refer to?
Dynamic Object Model
Document Object Model
Data Object Model
Document Flow Object Model
2. What does the term regex expand to?
Registered Expression
Regular Expression
Regression Expression
Regional Expression
3. Which label is used as a prefix pattern to specify a globbing pattern parameter for a Selenese command?
pattern
glob
regex
None of the mentioned
4. What is a test suite made of?
Test packs
Tests
Test blocks
Test pattern
5. What does the assertTitle checks?
Element title
Page title
Block title
Title of an element under focus
6. Select the component which is NOT part of the Selenium suite.
Selenium IDE
Selenium RC
selenium grid
Selenium Web
7. Select the name which is NOT the type of the locators.
ID
Name
Password
Link Text
8. The Selenium
Provides professional customer support
Test Reports are generated automatically
Comes with a built-in object repository
Cannot access elements outside of the web application under test
9. Which command can be used to enter values into text boxes?
sendsKeys()
sendKey()
sendKeys
sendKeys()
10. In the case of Selenium IDE, the Source view shows your script in
DHTML format
J2EE format
XML format
HTML format.
11. Which component of Selenium can create customized test results?
Web driver
Selenium RC
Selenium IDE
Selenium Grid
12. Select the command which is NOT used in verifying page elements.
verifyElementPresent
verifyElementRight
verifyElementNotPresent
verifyElementPositionLeft
13. Select the variation which finds elements based on the driver’s underlying CSS selector engine in Web driver Selenium.
By.cssSelected
By.cssSelection
By.cssSelector
By.Select
14. Select the variation which locates elements by the value of the “name” attribute in Web driver Selenium
By.name
By.nametag
By.tagname
By.nametags
15. Which is a faster component between the selenium web driver and Selenium RC?
Selenium RC
Selenium Web driver
By.idno
None of the mentioned
16. Select the variation which locates elements by the value of their “id” attribute in Web Driver Selenium
By.id
By.idno
By.id_no
By.tag_id
17. Which Navigate command takes you forward by one page on the browser’s history in Web driver Selenium.
navigate.forward()
navigate().forward()
navigate()_forward()
navigate_forword()
18. Which method is used when you want to verify whether a certain checkbox, radio button, or option in a drop-down box is selected in Web driver Selenium
is_Selected()
select()
isSelected()
is_Select()
19. Which command should be used to confirm that test will pass in the future when a new element is added after page loaded?
waitForElementPresent
pause
assertElementPresent
None of these
20. How to execute a specific command?
Highlight a command. Press Ctrl + F9.
Highlight a command. Press Alt + F9.
Highlight a command. Press Ctrl + X.
Highlight a command. Press X.
21. Which is the odd one out?
ID
XPath
CSS selector
Pattern matching
22. Extend waitFor (time in sec)
wait for (time in sec) extend
setTimeout (time in sec)
setTimeout.
None of the mentioned
23. ______ finds the item ending with the value passed in. This is the equivalent to the XPath ends-with. Is concern with?
^=
$=
*=
&=
24. Which regular expression sequence that loosely translates to “anything or nothing?”
* (dot star)
*. (star dot)
“?
*+
25. We use the dot (.) operator followed by either a * or a +. The + tells the regular expression that there will be instances between “0” and “n”, while the * tells the regular expression that there will be instances between “1” and “n”.
True
FALSE
all of the above
None of the mentioned
26. Applications do not have the items needed for the tests when the tests get to commands. To get around this, we had a look at adding for waitFor commands to test. This is related to
Debugging tests
Working with AJAX applications
Working with multiple windows
All of these
27. Which process uses the JavaScript to find an element?
By DOM query
BY XPath query
BY CSS sector
All of these
28. If you wanted to access the element that has the text “This element has an ID that changes every time the page is loaded” in it, then which of the following is used:
//div[contains(@id,’time_’)]
//div[contains(@id_time())]
//div[parameter(@id_time())]
//div[parameter(@id,’time_’)]
29. What is the default port number used by a hub in selenium?
4444
2222
1111
3333
30. In selenium, parent and child nodes are in the same query because HTML has a tree structure.
True
False
all of the above
None of the mentioned
31. Selenium doesn’t support __________ to write programs (Test Scripts)
Java
Kotlin
VBScript
Python
32. ____ is not a Selenium Component.
Selenium IDE
Maven
Selenium Grid
WebDriver
33. _____ doesn’t support Test design (Creating test Cases)
Selenium IDE
Selenium RC
Selenium WebDriver
Selenium Grid
34. ______ doesn’t support programming.
Selenium IDE
Selenium RC
Selenium WebDriver
Selenium Grid
35. What is TestNG?
Programming Language
Test Tool
Build Automation Tool
Testing Framework
36. What is Maven?
Programming Language
Test Tool
Build Automation Tool
Testing Framework
37. _____ supports Parallel Test Execution
Selenium IDE
Selenium RC
Selenium WebDriver
Selenium Grid
38. Selenium IDE supports _____ Browser only to create and execute Test Cases.
Google Chrome
Internet Explorer
Mozilla Firefox
Opera
39. What is Jenkins?
Continuous Integration Tool
Functional & Regression Test Tool
Mobile Test Tool
Testing Framework
40. ____ is the use of Firebug in Selenium?
Programming
Inspecting Elements
Parallel Testing
Cross Browser Testing
41. _______ is an Advantage of Selenium WebDriver?
Supports Web-based Applications only
No built-in Result Reporting facility
Open Source
No IDE
42. _____ is a Disadvantage of Selenium WebDriver?
Cross-platform
Open Source
Parallel Test execution
Supports Web based Applications only
43. Selenium supports Computer Web Applications and ______
Desktop Applications
Mobile Native Applications
Mobile Web Applications
Mobile Hybrid Applications
44. Selenium IDE doesn’t support_______
Recording
Batch Testing
Programming
Test Execution
45. Selenium WebDriver doesn’t support_______
Recording
Batch Testing
Programming
Test Execution
46. ______ is the built-in feature of Mozilla Firefox Browser to inspect elements?
Firebug
Firepath
Page Inspector
POM (Page Object Model)
47. _____ is not for Functional Test Automation?
Selenium
UFT/QTP
SilkTest
RPT
48. ______ is not a Performance Test Tool?
LoadRunner
UFT/QTP
SilkPerformer
RPT
49. _____ is not a Bug Tracking Tool?
Bugzilla
Mantis
Cucumber
BugHost
50. ______ is not a Mobile Test Tool?
Appium
Mantis
Silk Mobile
Ranorex
51. ______ is not a Test Management Tool?
HP ALM
Jira
TestLink
Sahi
52. Selenium supports ____________Testing Level
Unit Testing
Integration Testing
System Testing
Acceptance Testing
53. Which is the most common way to find an element on a page?
id()
xpath()
cssSelector()
name()
54. TestNG stands for ——
TestNextGenerations
TestNextGeneration
TestNewGeneration
TestNewGenerlization
55. Is there any authorized Selenium Certification?
No
Yes
all of the above
None of the mentioned
Submit