Studio
2023.4
False
横幅背景图像
Studio 用户指南
上次更新日期 2024年4月26日

关于 Webdriver 协议

Webdriver 是一种用于自动化浏览器的常用协议。该协议会在单独的可执行文件而非浏览器中公开 REST API。该协议广泛用于各种操作,例如启动浏览器(无头模式或非无头模式)、单击元素、键入字段、打开选项卡、浏览文档对象模型 (DOM) 以及注入 Javascript 等。

In the UiPath® Platform, the WebDriver protocol introduces support for headless browser automations. This means that browser automations don't necessarily have to rely on visual elements on screen, such as window frames. Automations are executed in the background, without you having to keep up the browser window. Nonetheless, the WebDriver protocol is not strictly meant for headless browser automations, and can also be used to operate browsers visually.

可以为以下浏览器创建包含 WebDriver 协议的自动化项目:

  • Google Chrome
  • Mozilla Firefox
  • Microsoft Edge 浏览器

通过 Webdriver 协议实现的自动化不需要您安装相应的浏览器扩展程序,但是确实需要相应的浏览器 WebDriver 可执行文件。

虽然 Webdriver 协议可用于无头浏览器自动化和可视浏览器自动化,但这并不表示其可以取代 UiPath 浏览器扩展程序,让您自由使用最适合自己的选项。

Webdriver 协议生成的选取器与 UiPath 浏览器扩展程序生成的选取器相同。这一点适用于无头浏览器自动化和可视浏览器自动化,但不适用于窗口框架。

WebDriver 每次都会打开一个新的浏览器会话(流程),此会话独立于任何其他浏览器会话。关闭浏览器后,相应的 Webdriver 应用程序(geckodriver.exemsedgedriver.exe)也会与所有相关的浏览器会话一同终止。

使用 WebDriver 协议创建的自动化可以在“打开浏览器”容器内部和外部执行浏览器活动,这适用于无头和可视浏览器自动化。此外,生成的原生选取器具有对可视浏览器自动化的完全交互式选择支持。

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.