Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the Difference between Selenium Webdriver and Selenium Ghostdriver? [closed]

I want to know difference between Selenium Webdriver and Selenium Ghostdriver.

I am also confused as to why selenium Ghostdriver is used?

Please give me a brief idea.

Thanks in Advance.

like image 795
Sagar007 Avatar asked Oct 12 '15 05:10

Sagar007


People also ask

What is the difference between driver close and driver quit in Selenium WebDriver?

The difference between quit() and close() driver. quit() : The quit() method quits the driver, closing every associated window. driver. close() : The close() method closes the currently focused window, quitting the driver if the current window is the only open window.

Is there a difference between Selenium and Selenium WebDriver?

Selenium IDE is an accessory to your testing environment, acting as an extra set of tools for certain testing functions such as log ins, user interface buttons, and search queries. Selenium WebDriver, on the other hand, is a complete system you can use to build your application test requirements.

What is the difference between WebDriver and RemoteWebDriver Mcq?

Selenium RemoteWebDriver : Difference between WebDriver and RemoteWebDriver. Selenium Webdriver is a tool used to execute automated test cases on various browsers. The object of the WebDriver is a browser. Selenium RemoteWebDriver implements the WebDriver interface to execute test cases.


1 Answers

Selenium WebDriver is made up of core Java API and it is also known as Selenium 2

Ghost Driver is a pure JavaScript implementation of the WebDriver Wire Protocol for PhantomJS. It's a Remote WebDriver that uses PhantomJS as back-end.

WebDriver Implementation for PhantomJs is GhostDriver Architecture of GhostDriver

The Selenium2 driver actually loads and runs an active browser session, manipulating the browser just as a human would. ZombieJS is a 'headless' browser that provides all of the features of a regular browser, but without a display interface. Without the extra time spent waiting for the display to actually render, a headless browser like ZombieJS can run far faster than a normal browser, so you're tests will execute in as little as half the time. But ZombieJS requires installing Node.js and can be a little buggy, plus it has its own API (which has both pros and cons). The Selenium2 driver is well tested and implements a standard API -- the WebDriver Wire Protocol -- across all of the browsers it has drivers for.

Now there's a headless browser that includes a WebDriver Wire Protocol implementation -- PhantomJS. The latest version of PhantomJS is an easy to install, stand-alone binary that doesn't require installing Node.js or any other dependencies, and ships with its own 'Ghost Driver' for implementing the WebDriver Wire Protocol. Which means you can drive it using the Selenium2 driver in Codeception, and anything that you can test in Chrome, Firefox, Safari, or IE using Selenium2, you can now test in half the time using PhantomJS

Even though it's not needed to run the most recent PhantomJS, it's a good idea to have Selenium2 installed so you can test in other browsers.

like image 194
Deepak_Mahalingam Avatar answered Oct 14 '22 16:10

Deepak_Mahalingam