📜  Selenium远程Webdriver和Selenium Webdriver之间的区别

📅  最后修改于: 2021-08-27 17:40:33             🧑  作者: Mango

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

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

Selenium远程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.