Selenium Mcq-2
Selenium Mcq-2
Unix
Linux
Windows
Solaris
--------------------------------------------------------------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------------------------------------------------------------
UFT
Selenium
--------------------------------------------------------------------------------------------------------------------------------------
Selenium IDE
Selenium RC
SeleniumGrid
Selenium Web
--------------------------------------------------------------------------------------------------------------------------------------
ASP
Java
C#
PHP
--------------------------------------------------------------------------------------------------------------------------------------
ID
Name
Password
Link Text
--------------------------------------------------------------------------------------------------------------------------------------
Google chrome
Opera mini
Mozilla Firefox
Internet Explorer
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
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()
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------
15. The Selenium
Yes
No
--------------------------------------------------------------------------------------------------------------------------------------
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
--------------------------------------------------------------------------------------------------------------------------------------
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
--------------------------------------------------------------------------------------------------------------------------------------
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
--------------------------------------------------------------------------------------------------------------------------------------
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
--------------------------------------------------------------------------------------------------------------------------------------
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
--------------------------------------------------------------------------------------------------------------------------------------
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
--------------------------------------------------------------------------------------------------------------------------------------
Wait
Exit
WaitForProperty
None of these.
--------------------------------------------------------------------------------------------------------------------------------------
waitForAlertPresent
waitForTextPresent
waitForFramePresent
waitForPageToLoad
--------------------------------------------------------------------------------------------------------------------------------------
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
--------------------------------------------------------------------------------------------------------------------------------------