100% found this document useful (2 votes)
6K views7 pages

Selenium Mcq-2

This document contains 33 multiple choice questions about Selenium. It covers topics like the different Selenium components, the browsers and operating systems supported, locator types, commands for entering text, waiting for elements, and verifying page elements.

Uploaded by

Rahul Ambadkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
6K views7 pages

Selenium Mcq-2

This document contains 33 multiple choice questions about Selenium. It covers topics like the different Selenium components, the browsers and operating systems supported, locator types, commands for entering text, waiting for elements, and verifying page elements.

Uploaded by

Rahul Ambadkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

SELENIUM MCQ's

1. Select the operating system which is NOT supported by Selenium IDE.

 Unix
 Linux
 Windows
 Solaris
--------------------------------------------------------------------------------------------------------------------------------------

2. 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.

--------------------------------------------------------------------------------------------------------------------------------------

3. Out of the following which can only test web applications

 UFT
 Selenium

--------------------------------------------------------------------------------------------------------------------------------------

4. Select the component which is NOT part of Selenium suite.

 Selenium IDE
 Selenium RC
 SeleniumGrid
 Selenium Web

--------------------------------------------------------------------------------------------------------------------------------------

5. Select the language which is NOT supported by the Selenium RC.

 ASP
 Java
 C#
 PHP

--------------------------------------------------------------------------------------------------------------------------------------

6. Select the name which is NOT the type of the locaters.

 ID
 Name
 Password
 Link Text

--------------------------------------------------------------------------------------------------------------------------------------

7. 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.
--------------------------------------------------------------------------------------------------------------------------------------

8. 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.
--------------------------------------------------------------------------------------------------------------------------------------

9. Select the Browser which is supported by Selenium IDE

 Google chrome
 Opera mini
 Mozilla Firefox
 Internet Explorer
--------------------------------------------------------------------------------------------------------------------------------------

10. Selenium IDE stands for

 Selenium Intialization Development Environment


 Selenium Interrelated Development Environment
 Selenium Integrated Development Environment
 Selenium Information Development Environment

--------------------------------------------------------------------------------------------------------------------------------------

11. Is Web Driver a component of the Selenium?

 No
 Yes
--------------------------------------------------------------------------------------------------------------------------------------

12. Select the command which is NOT a type of assertion in Selenium IDE.

 Assert
 Verify
 WaitFor
 Wait
--------------------------------------------------------------------------------------------------------------------------------------

13. Select the method which selects the option at the given index.

 selectByIndex()
 selectIndex()
 selectedByIndex()
 selectByIndexes()
--------------------------------------------------------------------------------------------------------------------------------------

14. The Selenium can

 access controls within the desktop


 both web and desktop applications
 only test web applications

--------------------------------------------------------------------------------------------------------------------------------------
15. 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
--------------------------------------------------------------------------------------------------------------------------------------

16. Can Google chrome be supported by Selenium IDE?

 Yes
 No
--------------------------------------------------------------------------------------------------------------------------------------

17. Can Unix operating system be supported by Selenium IDE?

 No
 Yes
--------------------------------------------------------------------------------------------------------------------------------------

18. Which command can be used to enter values onto text boxes?

 sendsKeys()
 sendKey()
 sendKeys
 sendKeys()
--------------------------------------------------------------------------------------------------------------------------------------

19. Select the language which is supported by The Selenium Web Driver

 Perl
 Sql
 ASP
 Cobol
--------------------------------------------------------------------------------------------------------------------------------------

20. Which Selenium component supports All Operating System?

 Selenium Generator
 Selenium IDE
 Selenium WebDriver
--------------------------------------------------------------------------------------------------------------------------------------

21. Select the command in Selenium IDE used to open a page using the URL.

 OpenRecord
 Open
 OpenText
 OpenTable
--------------------------------------------------------------------------------------------------------------------------------------

22. In case of Selenium IDE, the Source view shows your script in

 DHTML format
 J2EE format
 XML format
 HTML format.
--------------------------------------------------------------------------------------------------------------------------------------
23. 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.

--------------------------------------------------------------------------------------------------------------------------------------

24. Select the command which is used to check the presence of a certain element.

 verifyTable
 verifyTitlePresent
 verifyTextPresent
 verifyElementPresent
--------------------------------------------------------------------------------------------------------------------------------------

25. Select the command which is used to print a string value or a variable in Selenium IDE.
 The 'display' command
 The 'echo' command
 The 'print' command
 The 'printr' command
--------------------------------------------------------------------------------------------------------------------------------------

26. Which component of Selenium can create customized test results.

 Web driver
 Selenium RC
 Selenium IDE
 Selenium Grid
--------------------------------------------------------------------------------------------------------------------------------------

27. Select the command which is used to compare the contents of a table with expected values.

 verifyTables
 verifyTableData
 verifyTable
 verifyTableCell
--------------------------------------------------------------------------------------------------------------------------------------

28. Select the command which is used to pause execution until the specified element becomes
present.

 waitForElementPresent
 waitForPagePresent
 waitForTablePresent
 waitForFieldPresent
--------------------------------------------------------------------------------------------------------------------------------------

29.Select the command that will NOT wait for a new page to load before moving onto the next command.

 clickAndWait
 selectAndType
 typeAndWait
 selectAndWait
--------------------------------------------------------------------------------------------------------------------------------------

30. Select the command which is used to pause execution until the page is loaded completely.

 waitForPageToLoad
 waitForElementPresent
 waitForPage
 waitForLoad
--------------------------------------------------------------------------------------------------------------------------------------

31. What can be used to test Flex/Flash applications using Selenium

 FlexUISelenium
 FlexUI
 UIFlexSelenium
 SeleniumFlex
--------------------------------------------------------------------------------------------------------------------------------------

32. Select the command which is used to compare the actual page title with an expected value.

 verifyTitle
 verifiedTitle
 verifyTitles
 verifiedTitles
--------------------------------------------------------------------------------------------------------------------------------------

33. Select the command which is NOT used in verifying page elements .

 verifyElementPresent
 verifyElementRight
 verifyElementNotPresent
 verifyElementPositionLeft
--------------------------------------------------------------------------------------------------------------------------------------

34. Select the tab which gives feedback and other useful information when executing tests.

 Information
 Feedback
 Reference
 Element
--------------------------------------------------------------------------------------------------------------------------------------

35. What is TestNG?

 TestNextGeneration
 TestNewGenerlization
 TestNewGeneration
 TestNextGenerations
--------------------------------------------------------------------------------------------------------------------------------------

36. 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.Selectcs
--------------------------------------------------------------------------------------------------------------------------------------

37. 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
--------------------------------------------------------------------------------------------------------------------------------------

38. Select the tab that shows which command Selenium IDE is currently executing.

 Variable
 Data
 Information
 Info
--------------------------------------------------------------------------------------------------------------------------------------

39. Which is a faster component between the SeleniumWeb driver and Selenium RC?

 Selenium RC
 Selenium Web driver
--------------------------------------------------------------------------------------------------------------------------------------

40. Which is not the advantage of Selenium IDE?

 Intelligent field selection will use IDs, names, or XPath as needed.


 Auto complete for all common Selenium commands
 Support for Selenium user- extensions .jr file
 None of these.
--------------------------------------------------------------------------------------------------------------------------------------

41. Which is a procedure?

 Wait
 Exit
 WaitForProperty
 None of these.
--------------------------------------------------------------------------------------------------------------------------------------

42. Which is the following is false in case of waitFor command?

 waitForAlertPresent
 waitForTextPresent
 waitForFramePresent
 waitForPageToLoad
--------------------------------------------------------------------------------------------------------------------------------------

43. The // tells the query that

 It needs to stop at the first element that it finds.


 This is comment
 The path of the file or folder
 All of these
--------------------------------------------------------------------------------------------------------------------------------------

44. Which command should be used to confirm that test will pass in the future, when new element is
added after page loaded?

 waitForElementPresent
 pause
 assertElementPresent
 None of these

--------------------------------------------------------------------------------------------------------------------------------------

45. Which of the following is not verify and asserts method in Selenium?

 VerifyElementPresent
 VerifyElementNotPresent
 VerifyText
 VerifyTextAttributes
--------------------------------------------------------------------------------------------------------------------------------------------

Answers:
1. Unix
2. To run your test against different browsers (except HtmlUnit) on different operating systems.
3. Selenium
4. Selenium Web
5. ASP
6. Password
7. To execute tests on the HtmlUnit browser.
8. To test a web application against Firefox only.
9. Mozilla Firefox
10. Selenium Integrated Development Environment
11. Yes
12. Wait
13. selectByIndex()
14. only test web applications
15. Cannot access elements outside of the web application under test
16. No
17. No
18. sendKeys()
19. Perl
20. Selenium WebDriver
21. Open
22. HTML format.
23. are commands that directly interact with page elements.
24. verifyElementPresent
25. The 'echo' command
26. Web driver
27. verifyTable
28. waitForElementPresent
29. selectAndType
30. waitForPageToLoad
31. FlexUISelenium
32. verifyTitle
33. verifyElementRight
34. Reference
35. TestNextGeneration
36. By.cssSelector
37. By.name
38. Info
39. Selenium Web driver
40. Intelligent field selection will use IDs, names, or XPath as needed.
41. Wait
42. waitForFramePresent
43. It needs to stop at the first element that it finds.
44. waitForElementPresent
45. VerifyTextAttributes
--------------------------------------------------------------------------------------------------------------------------------------

You might also like