1.
Whose role did WebDriver replace?
Correct Answer
A. RC's
Explanation
WebDriver replaced the role of RC (Remote Control). WebDriver is a tool used for automating web applications and it provides a simpler and more reliable way to interact with web browsers compared to RC. RC was an older tool that allowed testers to write automated tests for web applications. WebDriver was developed as a successor to RC to overcome its limitations and provide a more efficient and effective solution for web automation testing.
2.
Why do you need to use Selenium-Server with Selenium WebDriver?
Correct Answer
B. To distribute your tests over multiple machines and virtual machines.
Explanation
Using Selenium-Server with Selenium WebDriver allows for the distribution of tests over multiple machines and virtual machines. This enables parallel execution of tests, which can significantly reduce the overall test execution time. By distributing tests, it is possible to increase the test coverage and improve the efficiency of the testing process. Additionally, it allows for the utilization of different machines with varying configurations, facilitating the testing of different environments.
3.
What's the easiest way to set up a Selenium 2.0 Java project?
Correct Answer
B. You need to use Maven
Explanation
The easiest way to set up a Selenium 2.0 Java project is by using Maven. Maven is a build automation tool that simplifies the project setup process by managing dependencies and building the project structure. It provides a standardized way to manage project dependencies and configurations, making it easier to set up and manage a Selenium 2.0 Java project.
4.
Against which web browsers can WebDriver execute tests?
Correct Answer
D. All of them
Explanation
WebDriver is a tool that allows automation of web browsers. It can execute tests against various web browsers including Opera, Safari, and Mozilla Firefox. Therefore, the correct answer is "All of them".
5.
Which programming language isn't supported by WebDriver?
Correct Answer
A. Emerald
Explanation
Emerald is the correct answer because WebDriver does not support the Emerald programming language. WebDriver is a tool used for automated testing of web applications, and it primarily supports languages like Java, PHP, and Perl. However, Emerald is not a widely used programming language, and it is not compatible with WebDriver.
6.
What can you perform while using WebDriver?
Correct Answer
B. Looping
Explanation
While using WebDriver, one can perform looping. This means that the user can repeat a certain set of actions or commands multiple times. Looping is a useful feature as it allows for efficient and repetitive tasks to be automated, saving time and effort. With looping, WebDriver can execute a series of actions in a loop until a certain condition is met, providing flexibility and control during test automation.
7.
Which statement is true about WebDriver?
Correct Answer
D. It controls the browser from the OS level
Explanation
WebDriver is a tool used for automating web browsers. It allows the user to control the browser from the operating system (OS) level, enabling actions such as opening and closing browsers, navigating to different pages, and interacting with elements on the page. This is different from Selenium RC, which had its own JavaScript-based automation engine. WebDriver also has the capability to run tests on multiple browsers, making it a versatile tool for web testing.
8.
Fill in the gap: WebDriver is ______ than Selenium RC.
Correct Answer
B. Faster
Explanation
WebDriver is faster than Selenium RC because WebDriver directly communicates with the browser using the browser's native support for automation. This eliminates the need for an intermediary server like Selenium RC, resulting in faster execution of commands and improved performance.
9.
What's Webdriver's drawback?
Correct Answer
C. It cannot readily support new browsers
Explanation
The drawback of Webdriver is that it cannot readily support new browsers. This means that when new browsers are released, Webdriver may not have immediate compatibility with them, causing potential issues and limitations in its usage.
10.
Which programming language should you use while working with WebDriver?
Correct Answer
D. Any language you prefer
Explanation
The correct answer is "any language you prefer" because WebDriver is a tool that supports multiple programming languages, including F#, C++, and Java. Therefore, you can choose any programming language that you are comfortable with and that meets the requirements of your project while working with WebDriver.