What is the difference between WebDriver and RemoteWebdriver in Selenium?

0 votes
What is the difference between WebDriver and RemoteWebdriver in Selenium?
May 10, 2019 in Selenium by Ishan
2,760 views

1 answer to this question.

0 votes

Hey Ishan, the difference between Webdriver and Remote Webdriver is as follows:

WebDriver:

  • WebDriver object represents the browser in Selenium. Using this object you can control the Web browser.
  • It is an interface of the org.openqa.selenium.* package. Upon instantiating the implementations of this class the browser will be launched.
  • FirefoxDrive, ChromeDriver, InternetExplorerDriver, SafariDriver, OperaDriver, HtmlUnitDriver, RemoteWebDriver are few implementations of the WebDriver Interface.

RemoteWebDriver:

  • This is the WebDriver object to control the desired browser in the node PC over the Grid using the Capability(settings) and Hostname or IP of the Selenium HUB running.
  • Using the RemoteWebDriver object instantiation, you can control any browser in the node PC which is on Windows, Mac, Linux etc.. platforms. For eg: 
//Capability(settings) to execute the Node with window 8 and firefox ver32

DesiredCapabilities capability = new DesiredCapabilities.firefox();

capability.setVersion(“32.0”);

capability.setPlatform(Platform.WIN8);

URL RegisteredUrl = new URL(“http://10.10.10.10:4444/wd/hub”);

WebDriver driver = new WebDriver(RegisteredUrl, capability);

driver.get(“http://www.edureka.co”);
answered May 10, 2019 by Pratibha
• 3,690 points

Related Questions In Selenium

0 votes
2 answers
0 votes
1 answer

What is the difference between findElement and findElements in Selenium Webdriver?

Hi Nilaabh, Selenium Webdriver uses findElement and ...READ MORE

answered May 8, 2019 in Selenium by Anvi
• 14,010 points
1,003 views
0 votes
1 answer

What is the difference between getWindowHandle() and getWindowHandles() methods in Selenium WebDriver?

Hey Jennifer, difference between getWindowHandle() and getWindowHandles() ...READ MORE

answered Jun 3, 2019 in Selenium by Anvi
• 14,010 points
1,123 views
0 votes
1 answer
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,510 points
1,468 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,850 points
1,451 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,850 points
1,214 views
0 votes
1 answer

What is Xpath and what are the types of it in Selenium Webdriver?

Hi Piyush, XPath is defined as XML path. It is ...READ MORE

answered May 8, 2019 in Selenium by Pratibha
• 3,690 points
315 views
0 votes
1 answer

What is Robot Class in selenium webdriver and why it is used?

Hello Akanksha, Robot Class is used for those ...READ MORE

answered May 8, 2019 in Selenium by Pratibha
• 3,690 points
280 views