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}.