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: This action supports Google Chrome, Chromium-based Microsoft Edge, and Internet Explorer browsers.
  • 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.
  • Optional: In the Time out after field, enter the number of seconds the bot must wait for the browser action to complete.
    Recommended: Enter a timeout value of at least 9 seconds.
  • Optional: Select a variable to hold the action output. The Control Room shows a descriptive default variable name. If you create several output variables, subsequent variable names are appended with a -1, -2, -3, and so on to avoid duplication.