Categories

Netsparker Web Application Security Scanner

Why Selenium Server not required by Selenium WebDriver?

In previous article we have seen about Difference between selenium IDE, RC & WebDriver.
As we already know Selenium RC requires starting the server to kick of the execution of Selenium Automated RC test suites. The Selenium server is the intermediator between browser and Selenium RC because Selenium RC won’t make direct call to browser. So we have to start Selenium server prior to start running Selenium RC test cases.
In case of Selenium WebDriver, it does not required to start Selenium Server for executing test scripts. Selenium WebDriver makes the calls between browser & automation script. Selenium WebDriver has native supports for each browser to supports Test Automation; on same machine (both Selenium WebDriver Automation tests & browsers are on same machine.)

Why Selenium Server not required by Selenium WebDriver

We use FireFox native support to execute the Selenium Test Automation script with the FireFox browser. In the Selenium WebDriver there are different browsers are supported like FireFox, Chrome, and Safari etc. To execute the Test Automation on different browsers we have to add its libraries to our Selenium WebDriver to execute automation tests.

Here we have seen because of different browsers native supports, we don’t need to start the Selenium Server before running the test scripts.

But it might be possible to use Selenium server while running Selenium WebDriver test scripts if both Selenium WebDriver Automation tests & browsers are on different machine. This is possible while using Selenium Grid, because of executing different test scripts simultaneously on different machines to save the execution time. If we have to execute the test suite having 5 independent test cases that might take 5 days to finish, so we use Selenium Grid with 5 machines & execute test cases simultaneously to finish the automation test cases in 1 day.

So in this article we have seen that why Selenium Server not required by Selenium WebDriver when the both Selenium WebDriver Automation tests & browsers are on same machine. In next article I will explain how to Create a JUnit Selenium WebDriver Test using Selenium IDE.

If you enjoy reading this article please make sure to share it with your friends. Please leave your questions/tips/suggestions in the comment section below and I’ll try to answer as many as I can.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>