Selenium Automation Framework: Data Driven, Keyword Driven & Hybrid (medium)
30 Questions
1 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which class is used to read an object repository file?

  • HSSFWorkbook
  • XSSFWorkbook
  • Properties
  • ReadObject (correct)
  • Which method is used to perform a click operation?

  • getText()
  • get()
  • click() (correct)
  • sendKeys()
  • Which object type is used to find an element by its name?

  • XPATH
  • CSS
  • NAME (correct)
  • CLASSNAME
  • Which method is used to get the text of an element?

    <p>getText()</p> Signup and view all the answers

    What is the file extension for an Excel file?

    <p>.xls</p> Signup and view all the answers

    What is the object type used to find an element by its CSS selector?

    <p>CSS</p> Signup and view all the answers

    What is the object type used to find an element by its partial link text?

    <p>PARTIALLINK</p> Signup and view all the answers

    Which library is capable of reading and writing both XLS and XLSX file formats of Excel?

    <p>POI</p> Signup and view all the answers

    What is the purpose of the Keyword Driven Framework in Selenium?

    <p>To separate keywords for common set of functions and instructions</p> Signup and view all the answers

    What is the role of the driver script Execute.java in the Selenium Framework?

    <p>To call ReadGuru99ExcelFile.java</p> Signup and view all the answers

    Why is an object repository created in the Selenium Framework?

    <p>To help with code maintenance</p> Signup and view all the answers

    What does the UIOperation class do in the Selenium Framework?

    <p>Performs actions corresponding to keywords</p> Signup and view all the answers

    What is the purpose of the object.properties file in the Selenium Framework?

    <p>To store the object repository</p> Signup and view all the answers

    What is the role of the ReadGuru99ExcelFile.java script in the Selenium Framework?

    <p>To read data from an Excel sheet</p> Signup and view all the answers

    Which type of framework is used to separate data sets from the test case in Selenium?

    <p>Data Driven Framework</p> Signup and view all the answers

    What are the benefits of using a Selenium automation framework?

    <p>All of the above</p> Signup and view all the answers

    Which library is commonly used to read or write Excel files in Selenium Webdriver?

    <p>POI</p> Signup and view all the answers

    What is the purpose of a Selenium automation framework?

    <p>To make code maintenance easy and efficient</p> Signup and view all the answers

    Which type of framework allows modifying data sets for specific functionality without changing the code?

    <p>Data Driven Framework</p> Signup and view all the answers

    What are the main types of frameworks created by Selenium WebDriver?

    <p>All of the above</p> Signup and view all the answers

    What is the purpose of separating data sets from the test case in Selenium?

    <p>To easily modify data sets without changing the code</p> Signup and view all the answers

    Which type of test framework can be achieved using TestNG's data provider?

    <p>Data Driven</p> Signup and view all the answers

    What are the advantages of a Hybrid Driven framework in Selenium?

    <p>All of the above</p> Signup and view all the answers

    What file needs to be replaced in a Hybrid Driven framework?

    <p>HybridExecuteTest.java</p> Signup and view all the answers

    What does the HybridExecuteTest.java file contain?

    <p>Code for Hybrid Driven framework</p> Signup and view all the answers

    What is the purpose of the perform function in the HybridExecuteTest.java file?

    <p>To perform operations on the UI</p> Signup and view all the answers

    What is the purpose of the getDataFromDataprovider function in the HybridExecuteTest.java file?

    <p>To read test data from an Excel file</p> Signup and view all the answers

    What type of files are used to maintain test cases in a Hybrid Driven framework?

    <p>Excel files</p> Signup and view all the answers

    What is the complete pictorial representation of a Hybrid Driven framework?

    <p>Hybrid Driven Framework</p> Signup and view all the answers

    What are the three types of test frameworks that can be created using Selenium WebDriver?

    <p>Data Driven, Keyword Driven, and Hybrid Frameworks</p> Signup and view all the answers

    More Like This

    Use Quizgecko on...
    Browser
    Browser