activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

用户界面自动化活动

上次更新日期 2026年1月14日

获取浏览器数据

UiPath.UIAutomationNext.Activities.NGetBrowserData

描述

从指定的浏览器实例导出浏览器会话数据。

该活动可在“使用应用程序/浏览器”活动内部和外部使用。

“获取浏览器数据”活动与“设置浏览器数据”活动配合使用,可以从特定浏览器配置文件导出 Cookie,并将其导入运行自动化的配置文件,从而使“画中画(PiP)”功能更易使用。

备注:

启用“用户同步”功能后,此活动不能与 Chrome 或 Edge 一起使用。这意味着在注销之前,登录到浏览器实例的用户将被视为已在任何其他实例中登录。目前,Firefox 浏览器不支持访问浏览器数据。使用此活动导出会话数据后,如果用户从应用程序实例注销,则该会话数据将不提供已登录的上下文,因为登录令牌在注销后失效。

提示:

用户必须使用多重身份验证(例如Salesforce)。机器人必须以 PiP 继续自动化执行,以避免干扰用户的工作。为避免在 PiP 浏览器实例中重新登录,系统会在登录后使用“获取浏览器数据”活动从 Windows 主会话浏览器实例导出会话数据,同时进一步使用“设置浏览器数据”活动将会话数据导入到子 PiP 浏览器会话。

项目兼容性

Windows - Legacy | Windows

Windows - 旧版 Windows 配置

  • Browser - The source browser you want to retrieve session data from. This field supports only Browser objects. If no Browser object is given, then browser data is automatically attempted to be obtained from the browser specified in the Browser Type property, even if that browser is running or stopped.
  • Browser Type - The type of browser you want to retrieve session data from. Only Edge and Chrome are supported.

属性面板

选项

  • Source User Data Folder - The source user data folder used by the running browser instance, which contains the cookies you want to export. Defaults to the selected browser's data folder if not modified.
  • User Profile - All the browser profiles defined within the selected source user data folder.
  • “出错时继续”- 指定在活动抛出错误时是否应继续自动化操作。该字段仅支持“布尔值”(TrueFalse)。默认值为 FALSE。因此,如果该字段为空且活动引发错误,系统将停止执行项目。如果该值设为 True,则无论出现何种错误,系统都将继续执行项目。

输出

  • Session Data - The variable in which you want to store the session data. This field supports only String variables.

计时

  • Delay before - Delay (in seconds) between the time the previous activity is completed and the time this activity begins performing any operations. The default value is 0.2 seconds. Adding a delay between activities ensures that one activity has enough time to complete before the next activity begins.
  • Delay after - Delay (in seconds) between the time this activity is completed and the time the next activity begins any operations. The default value is 0.3 seconds. Adding a delay between activities ensures that one activity has enough time to complete before the next activity begins.
  • “超时” - 指定在引发错误之前等待执行活动的时间(以秒为单位)。默认值为 30 秒。
  • 描述
  • 项目兼容性
  • Windows - 旧版 Windows 配置

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2026 UiPath。保留所有权利。