-2

I haven't got a clear explanation of these two. Can anyone please explain this to me?

  1. What's WebDriver and RemoteWebDriver? When and where we can declare it in selenium scripts?

  2. In place of WebDriver can we declare the RemoteWebDriver?

  • 1
    Does this answer your question? [What is the difference between RemoteWebDriver and WebDriver?](https://stackoverflow.com/questions/57528987/what-is-the-difference-between-remotewebdriver-and-webdriver) – andrewJames Mar 26 '23 at 01:06
  • Here are some more related [questions and answers](https://www.google.com/search?q=selenium+remotewebdriver+vs.+webdriver+site:stackoverflow.com) which may help, for more background. – andrewJames Mar 26 '23 at 01:07

1 Answers1

0

The short answer is that RemoteWebDriver is to run selenium on other machines.

RemoteWebDriver as interface of WebDriver and few more methods.

on your local machine you can use both RemoteWebDriver & WebDriver but if you will to run it on different machine, you will need to use RemoteWebDriver.