Selenium Webdriver Test: Quiz!

30 Questions | Total Attempts: 268

SettingsSettingsSettings
Selenium Webdriver Test: Quiz! - Quiz


Questions and Answers
  • 1. 
    Select the operating system which is NOT supported by Selenium IDE.
    • A. 

      Unix

    • B. 

      Linux

    • C. 

      Solaris

    • D. 

      Window

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

  • 3. 
    Select the language which is NOT supported by the Selenium RC.
    • A. 

      ASP

    • B. 

      Java

    • C. 

      C#

    • D. 

      PHP

  • 4. 
    The Web driver is used:
    • A. 

      To execute tests on the HtmlUnit browser.

    • B. 

      To design a test using Selenese

    • C. 

      To quickly create tests

    • D. 

      To test a web application against Firefox only.

  • 5. 
    Select the method which selects the option at the given index.
    • A. 

      SelectByIndex()

    • B. 

      SelectIndex()

    • C. 

      SelectedByIndex()

    • D. 

      SelectByIndexes()

  • 6. 
    The Selenium can:
    • A. 

      Access controls within the desktop

    • B. 

      Both web and desktop applications

    • C. 

      Only test web applications

    • D. 

      None of the above

  • 7. 
    The Selenium Bottom of Form
    • 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

  • 8. 
    Consider the following code snippet WebDriverWait wait = new WebDriverWait(driver, 30); wait.until(ExpectedConditions.presenceOfElementLocated(by)); This is an example of an implicit wait.
    • A. 

      True

    • B. 

      False

  • 9. 
    Which command can be used to enter values onto text boxes?
    • A. 

      SendsKeys()

    • B. 

      SendKey()

    • C. 

      SendKeys

    • D. 

      SendKeys()

  • 10. 
    Select the language which is supported by The Selenium Web Driver.
    • A. 

      Perl

    • B. 

      Sql

    • C. 

      Cobol

    • D. 

      ASP

  • 11. 
    Which Selenium component supports All Operating System?
    • A. 

      Selenium Generator

    • B. 

      Selenium WebDriver

    • C. 

      Selenium IDE

    • D. 

      None of the above

  • 12. 
    Select the command in Selenium IDE used to open a page using the URL.
    • A. 

      OpenRecord

    • B. 

      Open

    • C. 

      OpenText

    • D. 

      OpenTable

  • 13. 
     In the case of Selenium IDE, the Source view shows your script in:
    • A. 

      DHTML format

    • B. 

      J2EE format

    • C. 

      XML format

    • D. 

      HTML format

  • 14. 
    Select the command which is used to pause execution until the page is loaded completely.
    • A. 

      WaitForPageToLoad

    • B. 

      WaitForElementPresent

    • C. 

      WaitForPage

    • D. 

      WaitForLoad

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

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

  • 17. 
    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()

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

  • 19. 
    Select the method which clears all selected entries in Web driver Selenium
    • A. 

      DselectAll()

    • B. 

      Deselect_All()

    • C. 

      Dselect_All()

    • D. 

      DeselectAll()

  • 20. 
    Select the method which performs a context-click at the current mouse location.
    • A. 

      Click_Context()

    • B. 

      Context.Click()

    • C. 

      ContextClick()

    • D. 

      Context_Click()

  • 21. 
    Select the Get command which fetches the inner text of the element that you specify in Web driver Selenium.
    • A. 

      GetinnerText()

    • B. 

      Get_in_Text()

    • C. 

      Get_inner_Text()

    • D. 

      GetText()

  • 22. 
    In Webdriver, which of the following commands retrieves the text of an html element?
    • A. 

      SelectText()

    • B. 

      GetText()

    • C. 

      GetElementText()

    • D. 

      GetText(WebElement)

  • 23. 
    In WebDriver, which command can be used to enter values onto text boxes?
    • A. 

      SendKeys("text")

    • B. 

      Elenium.type()

    • C. 

      Driver.type("text")

    • D. 

      SendKeys()

  • 24. 
    In web driver, which of the following is a valid select statement that selects a value from a drop-down element?
    • A. 

      SelectByIndex()

    • B. 

      SelectByVisibleText()

    • C. 

      SelectByValue()

    • D. 

      All above

  • 25. 
    In web driver, what is the method that counts the number of elements?
    • A. 

      driver.getCountOfElements()

    • B. 

      Driver.findElement(By.id("search")).getCount()

    • C. 

      Driver.findElements(By.id("search")).size()

    • D. 

      Driver.findElements(By.id("search")).length()

Back to Top Back to top