Home

1000+ Selenium automation Multiple Choice Question Answer [Solved]

Thursday 9th of March 2023

Sharing is caring

1. Selenium IDE stands for
A. Selenium Intialization Development Environment
B. Selenium Interrelated Development Environment
C. Selenium Integrated Development Environment
D. Selenium Information Development Environment
Answer : C
2. Method which selects the option which displays the text matching the parameter passed to it
A. selectVisibleText()
B. selectByVisibleText()
C. select_VisibleText()
D. select_ByVisibleText()
Answer : B
3. Which regular expression sequence that loosely translates to anything or nothing?
A. .* (dot star)
B. *. (star dot)
C. *?
D. *+
Answer : A
4. ___________ finds the item ending with the value passed in. This is the equivalent to the XPath ends-with. Is concern with?
A. ^=
B. $=
C. *=
D. &=
Answer : B
5. Select the command which is used to pause execution until the specified element becomes present.
A. waitForElementPresent
B. waitForPagePresent
C. waitForTablePresent
D. waitForFieldPresent
Answer : A
6. Out of the following which can only test web applications
A. QTP
B. Selenium
C.
D.
Answer : B
7. How to execute specific command?
A. Highlight a command. Press Ctrl + F9.
B. Highlight a command. Press Alt + F9.
C. Highlight a command. Press Ctrl + X.
D. Highlight a command. Press X.
Answer : D
8. Which of the following is not verify and asserts method in Selenium?
A. VerifyElementPresent
B. VerifyElementNotPresent
C. VerifyText
D. VerifyTextAttributes
Answer : D
9. Which method is used when you want to verify whether a certain check box, radio button, or option in a drop-down box is selected in Web driver Selenium
A. is_Selected()
B. isSelect()
C. isSelected()
D. is_Select()
Answer : C
10. What does the term regex expands to ?
A. Registered Expression
B. Regular Expression
C. Regression Expression
D. Regional Expression
Answer : B
11. In Selenium variables are stored in _________ .
A. storedVars
B. storedVariables
C. VariablesStore
D. All of the above
Answer : A
12. In Selenium, Following Axis is related to:
A. Selects all the siblings after the current element
B. Selects all elements that follow the closing tab of the current elements.
C. Selects all of the siblings before the current element
D. Selects all elements that are before the current element
Answer : B
13. Select the method which clears all selected entries in Web driver Selenium.
A. dselectAll()
B. deselect_All()
C. dselect_All()
D. deselectAll()
Answer : D
14. The test language usually used in Selenium is ________________.
A. PHP
B. Python
C. JavaScript
D. None of the above
Answer : C
15. Select the tab which gives feedback and other useful information when executing tests.
A. Information
B. Feedback
C. Reference
D. Element
Answer : C
16. What is a test suite made of ?
A. Test packs
B. Tests
C. Test blocks
D. Test pattern
Answer : B
17. Select the command in Selenium IDE used to open a page using the URL.
A. OpenRecord
B. Open
C. OpenText
D. OpenTable
Answer : B
18. Selenium variables are stored in _____________.
A. storedVars
B. storedVariables
C. VariablesStore
D. None of the above
Answer : A
19. Which command can be used to enter values onto text boxes?
A. sendsKeys()
B. sendKey()
C. sendKeys
D. sendKeys()
Answer : D
20. Variable can be saved in which format?
A. ${variableName}
B. storedVars['variableName'].
C. Both of these
D. None of these
Answer : C
21. What is TestNG?
A. TestNextGeneration
B. TestNewGenerlization
C. TestNewGeneration
D. TestNextGenerations
Answer : A
22. What does the term DOM refers to ?
A. Dynamic Object Model
B. Document Object Model
C. Data Object Model
D. Document Flow Object Model
Answer : B
23. The term AJAX expands to ________.
A. Asynchronous Java and XML
B. Asynchronous JavaScript and XML
C. Accumulated Java and XML
D. None of the above
Answer : B
24. Which Navigate command takes you forward by one page on the browser's history in Web driver Selenium.
A. navigate.forward()
B. navigate().forward()
C. navigate()_forward()
D. navigate_forword()
Answer : B
25. What is Selenium IDE ?
A. Windows Software
B. Firefox Plug-in
C. Java Software
D. Flash Plug-in
Answer : B
26. In selenium, parent and child nodes are in same query because HTML has a tree structure.
A. True
B. False
C.
D.
Answer : A
27. In case of Selenium IDE, the Source view shows your script in
A. DHTML format
B. J2EE format
C. XML format
D. HTML format.
Answer : C
28. Which two commands you use to validate a button?
A. VerifyTextPresent and assertTextPresent
B. VerifyElementPresent and assertElementPresent
C. VerifyAlertPresent and assertAlertPresent
D. VerifyAlert and assertAlert
Answer : B
29. Which command is used to extend the time limit of WAITFOR command?
A. Extend waitFor (time in sec)
B. waitFor (time in sec) extend
C. setTimeout (time in sec)
D. setTimeout.
Answer : D
30. Is Web Driver a component of the Selenium?
A. No
B. Yes
C.
D.
Answer : B
31. Select the method which selects the option at the given index.
A. selectByIndex()
B. selectIndex()
C. selectedByIndex()
D. selectByIndexes()
Answer : A
32. 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 fro waitFor commands to test. This is related to
A. Debugging tests
B. Working with AJAX applications
C. Working with multiple windows
D. All of these
Answer : B
33. Select the command which retrieves the alert message and stores it in a variable that you will specify.
A. storeAlert
B. storedAlert
C. store_Alert
D. storesAlert
Answer : A
34. 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
Answer : B
35. What is the default port number used by hub in selenium?
A. 4444
B. 2222
C. 1111
D. 3333
Answer : A
36. Which is a procedure?
A. Wait
B. Exit
C. WaitForProperty
D. None of these.
Answer : A
37. Select the component which is NOT part of Selenium suite.
A. Selenium IDE
B. Selenium RC
C. SeleniumGrid
D. Selenium Web
Answer : D
38. The Selenium RC is used
A. To run your test against different browsers (except HtmlUnit) on different operating systems.
B. To create tests with little or no prior knowledge in programming.
C. To test a web application against Firefox only.
D. To run a huge test suite, that can be executed on multiple machines.
Answer : A
39. Which is not true in case of Globs, in Selenium?
A. Globs are used as default pattern matching technique.
B. It is similar to regular expressions.
C. The syntax of Globs is much wider than Regular expression
D. B and C
Answer : C
40. Select the operating system which is NOT supported by Selenium IDE.
A. Unix
B. Linux
C. Windows
D. Solaris
Answer : A
41. Select the command which is used to compare the actual page title with an expected value.
A. verifyTitle
B. verifiedTitle
C. verifyTitles
D. verifiedTitles
Answer : A
42. What is called that scale for large test suites or test suites that must be run in multiple environments?
A. Selenium-Grid
B. Selenium RC
C. Selenium Web driver
D. Selenium NG
Answer : A
43. Which Selenium component supports All Operating System?
A. Selenium Generator
B. Selenium IDE
C. Selenium WebDriver
D.
Answer : C
44. What is the most common way to find an element on a page?
A. ID
B. XPath
C. CSS selector
D. Name
Answer : B
45. Selects all the parent, grandparent, and so on of the element is related to which axis name in Selenium:
A. Ancestor
B. Preceding
C. Parent
D. All of these.
Answer : A
46. Select the command which is NOT used in verifying page elements .
A. verifyElementPresent
B. verifyElementRight
C. verifyElementNotPresent
D. verifyElementPositionLeft
Answer : B
47. 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:
A. //div[contains(@id,'time_')]
B. //div[contains(@id_time())]
C. //div[parameter(@id_time())]
D. //div[parameter(@id,'time_')]
Answer : A
48. In regular Expression * quantifier refers to:
A. 0 or more of the preceding character.
B. 1 or more of the preceding character
C. 0 or 1 of the preceding character
D. All of these
Answer : A
49. Which Component is used to run multiple tests simultaneously in different browsers and platforms?
A. Selenium Grid
B. Selenium IDE
C. Selenium RC
D. Selenium Webdriver
Answer : A
50. Select the View which shows your script in HTML format.
A. The Table View
B. The Source View
C. The Editor View
D. The Field View
Answer : B

Sharing is caring