📜  Selenium Remote Webdriver 和Selenium Webdriver 的区别

📅  最后修改于: 2021-09-11 06:15:38             🧑  作者: Mango

1. Selenium远程网络驱动程序:
它是一个界面,用于在分布式环境或远程计算设备上执行浏览器自动化和执行评估。换句话说,它是一个实现 WebDriver 接口的类,这个动作是在远程服务器上执行的。浏览器有不同的驱动程序类,例如 ChromeDriver、FirefoxDriver 等。

2.Selenium驱动程序:
它可以帮助您在一些自动化脚本的帮助下直接与浏览器交互,这些脚本包括起点、各种变量及其绑定值和源代码。它用于为各种平台提供支持,与Selenium IDE 或 RC 相比,它的执行速度略快。它提供了多个客户端库,可用于不同的编程语言,如Python、C、 Java等,用于为Selenium测试构建自动化。

Selenium Remote Webdriver 和Selenium Webdriver 的区别:

S.No. Selenium Remote Webdriver Selenium Webdriver
1. It is a class which implements a Webdriver interface. It is an interface and to use this, org.openqa.selenium.* package is required.
2. It has some extra methods which are used for the implementation of the class. It has a lesser number of methods as compared to Remote Webdriver, used for the interface implementation.
3. In this, the object is used to manage browser which is present in the grid. In this, many browsers are managed by the Webdriver object.
4. Remote Webdriver is a part of Webdriver. It is not part of any Webdriver.
5. It provides methods like startSession(), getSessionId(), etc. It provides methods like quit(), get(), etc.
6. To test this, the remote machine is required. It can be tested on the local machine.
7. It does not depend on the OS. It depends on the OS.