Creating Object Repository in Selenium WebDriver: XML & Properties file (hard)

AwedExuberance avatar
AwedExuberance
·
·
Download

Start Quiz

Study Flashcards

Questions and Answers

Which of the following is NOT a major advantage of using an object repository in Selenium WebDriver?

Built-in object repository

What is the purpose of an object repository in Selenium WebDriver?

To segregate objects from test cases

Which approach can be used to create an object repository in Selenium WebDriver?

Properties file approach

What is stored in a properties file in Selenium WebDriver?

<p>Key-value pairs</p> Signup and view all the answers

What is the purpose of the string 'mobileTesting' in the tutorial?

<p>To identify the Mobile Testing link within the webpage</p> Signup and view all the answers

What type of object repository is created using a properties file in Selenium WebDriver?

<p>Properties file repository</p> Signup and view all the answers

What is the purpose of the demo website mentioned in the tutorial?

<p>To showcase Selenium WebDriver features</p> Signup and view all the answers

What is the major advantage of using an object repository in Selenium WebDriver?

<p>Segregation of objects from test cases</p> Signup and view all the answers

What does the XPATH in the string 'mobileTesting' represent?

<p>Locator value</p> Signup and view all the answers

What is the purpose of creating an object repository in Selenium WebDriver?

<p>To increase modularity of framework implementation</p> Signup and view all the answers

Which method can be used to read data from a properties file in test scripts?

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

What is the purpose of using an XML file in test scripts?

<p>To pass data as a parameter to findElement method</p> Signup and view all the answers

Which class is used to read data from an XML file in Java?

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

What is the purpose of the 'dom4j' class in Java?

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

Which step is required before reading data from an XML file in Java?

<p>Create a File object</p> Signup and view all the answers

What is the purpose of the 'selectSingleNode' method in Java?

<p>To access individual nodes of the XML document</p> Signup and view all the answers

What format does an XML file replicate?

<p>HTML format</p> Signup and view all the answers

What should be done before using an XML file in test scripts?

<p>Add JAR files to the buildpath</p> Signup and view all the answers

What is the purpose of using a properties file in test scripts?

<p>To pass data as a parameter to findElement method</p> Signup and view all the answers

What is the purpose of the 'findElement' method in test scripts?

<p>To locate an element on a webpage</p> Signup and view all the answers

Use Quizgecko on...
Browser
Browser