Get source code action

The Get source code action retrieves the source code of a web page and an iFrame on a web page and saves the output to a string variable.

Settings

Note:
  • For macOS platform, this action supports Google Chrome and Safari browsers.
  • For Windows platform, this action supports Google Chrome and Chromium-based Microsoft Edge, and Internet Explorer browsers.
  • This action supports CEF-based desktop applications.
  • Select the browser tab from the list of active supported browser tabs or insert a window variable.
  • Optional: Use the Capture object option to capture the iFrames.
    Note:
    • The Capture object feature is used only to retrieve the source code of an iFrame. If you do not capture anything on the window, the source code of the entire window is retrieved.
    • Retrieving the source code of an iFrame is currently supported only on the Google Chrome browser.
  • 可选:后超时字段中,输入 bot 必须等待浏览器操作完成的秒数。
    推荐: 输入至少 9 秒的超时值。
  • 可选: 选择变量以保存 action 输出。 Control Room 显示了描述性的默认变量名称。 如果创建多个输出变量,在随后的变量名称中将附加 -1-2-3,以此类推,以避免重。