Home

XAT - Selenium automation 1000+ MCQ [Solved] PDF Download

Thursday 9th of March 2023

Sharing is caring

1. What does the term CSS refers to ?
A. Cascade Style Sheets
B. Cascading Style Sheets
C. Clear Style Sheets
D. Catering Style Sheets
Answer : B
2. Variable can be saved in which format?
A. ${variableName}
B. storedVars['variableName'].
C. Both of these
D. None of these
Answer : C
3. 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
4. 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
5. 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
6. Which of the following is not verify and asserts method in Selenium?
A. VerifyElementPresent
B. VerifyElementNotPresent
C. VerifyText
D. VerifyTextAttributes
Answer : D
7. Where is XPath used in ?
A. XML documents
B. MS-Word documents
C. MS-Excel documents
D. MS-PowerPoint documents
Answer : A
8. Select the component which is NOT part of Selenium suite.
A. Selenium IDE
B. Selenium RC
C. SeleniumGrid
D. Selenium Web
Answer : D
9. What is the most common way to find an element on a page?
A. ID
B. XPath
C. CSS selector
D. Name
Answer : B
10. Selenium tests _____________.
A. DOS applications
B. Browser-based applications
C. GUI applications
D. None of the above
Answer : B
11. Out of the following which is NOT a wait command.
A. waitForTitle
B. waitForTextPresent
C. waitForActive
D. waitForAlert
Answer : C
12. Select the method which selects the option at the given index.
A. selectByIndex()
B. selectIndex()
C. selectedByIndex()
D. selectByIndexes()
Answer : A
13. Which Selenium component supports All Operating System?
A. Selenium Generator
B. Selenium IDE
C. Selenium WebDriver
D.
Answer : C
14. Select the language which is supported by The Selenium Web Driver
A. Perl
B. Sql
C. ASP
D. Cobol
Answer : A
15. Is Web Driver a component of the Selenium?
A. No
B. Yes
C.
D.
Answer : B
16. Can Google chrome be supported by Selenium IDE?
A. Yes
B. No
C.
D.
Answer : B
17. What is TestNG?
A. TestNextGeneration
B. TestNewGenerlization
C. TestNewGeneration
D. TestNextGenerations
Answer : A
18. Select the Browser which is supported by Selenium IDE
A. Google chrome
B. Opera mini
C. Mozilla Firefox
D. Internet Explorer
Answer : C
19. 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
20. Out of the following which can only test web applications
A. QTP
B. Selenium
C.
D.
Answer : B
21. Which component of Selenium can create customized test results.
A. Web driver
B. Selenium RC
C. Selenium IDE
D. Selenium Grid
Answer : A
22. Select the command in Selenium IDE used to open a page using the URL.
A. OpenRecord
B. Open
C. OpenText
D. OpenTable
Answer : B
23. 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
24. 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
25. Which process use the JavaScript to find an element?
A. By DOM query
B. BY XPath query
C. BY CSS sector
D. All of these
Answer : A
26. 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
27. Select the operating system which is NOT supported by Selenium IDE.
A. Unix
B. Linux
C. Windows
D. Solaris
Answer : A
28. To delete a cookie we need to call the deleteCookie method, passing in two parameters.
A. The first parameter is the name of the cookie, and the second parameter is where it was created.
B. The first parameter is where it was created, and the second parameter is the name of cookie.
C. None of these
D. All of the above
Answer : A
29. 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
30. 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
31. Select the variation which finds elements based on the driver's underlying CSS selector engine in Web driver Selenium.
A. By.cssSelected
B. By.cssSelection
C. By.cssSelector
D. By.Selectcs
Answer : C
32. Which label is used as prefix pattern to specify a globbing pattern parameter for a Selenese command ?
A. pattern
B. glob
C. regex
D. None
Answer : B
33. ___________ 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
34. 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.
A. True
B. False
C.
D.
Answer : B
35. 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
36. Select the command which is used to print a string value or a variable in Selenium IDE.
A. The 'display' command
B. The 'echo' command
C. The 'print' command
D. The 'printr' command
Answer : B
37. 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
38. 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
Answer : D
39. Can Unix operating system be supported by Selenium IDE?
A. No
B. Yes
C.
D.
Answer : A
40. 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
41. Select the tab which gives feedback and other useful information when executing tests.
A. Information
B. Feedback
C. Reference
D. Element
Answer : C
42. Which command should be used to confirm that test will pass in the future, when new element is added after page loaded?
A. waitForElementPresent
B. pause
C. assertElementPresent
D. None of these
Answer : A
43. What does the assertTitle checks ?
A. Element title
B. Page title
C. Block title
D. Title of element under focus
Answer : B
44. Select the method which clears all selected entries in Web driver Selenium.
A. dselectAll()
B. deselect_All()
C. dselect_All()
D. deselectAll()
Answer : D
45. Variable can be saved in which format?
A. ${variableName}
B. storedVars['variableName'].
C. Both of these
D. None of these
Answer : C
46. The term JSON refers to ______________.
A. JavaScript Object Notation
B. Java Object Notation
C. Java Object Naming
D. None of the above
Answer : A
47. What is a test suite made of ?
A. Test packs
B. Tests
C. Test blocks
D. Test pattern
Answer : B
48. 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
49. Select the variation which locates elements by the value of the name� attribute in Web driver Selenium
A. By.name
B. By.nametag
C. By.tagname
D. By.nametags
Answer : A
50. Select the method which performs a context-click at the current mouse location.
A. click_Context()
B. context.Click()
C. contextClick()
D. context_Click()
Answer : C

Sharing is caring