Get HTML Code

Verb: webGetHtmlSource

Gets the full HTML code of a web page.

Syntax

webGetHtmlSource (String)=value

Outputs

Script Designer AcceptedTypes Description
value HTML code Text Returns text with the page's full HTML code.

Example

The Get HTML Code command gets the full HTML code from the IBM Robotic Process Automation homepage.

defVar --name htmlCode --type String
webStart --name browser --type "Chrome"
webNavigate --url "www.ibm.com"
webGetHtmlSource htmlCode=value
webClose --name browser
logMessage --message "${htmlCode}" --type "Info"
// Display in the IBM Robotic Process Automation Studio console the HTML retrieved from the page and stored in ${htmlCode}.

See Also

  • Associate Browser
  • Back to Previous Page
  • Close Browser
  • Close Browser Tab
  • Find Internet Explorer Browser
  • Find or Attach Tab
  • Forward To Next Page
  • Full Web Page Screenshot
  • Get Web Snapshot
  • Handle Alert
  • Navigate
  • Refresh Web Page
  • Solve Web Captcha
  • Start Browser
  • Wait Download
  • Wait for Web Page Requests