getHTMLGet source code of specified DOM element by selector. Usage1client.getHTML(selector[,includeSelectorTag]).then(callback); Parameters Param Type Details selector String element to get the current DOM structure from includeSelectorTagoptional Boolean if true it includes the selector element tag (default: true) Exampleindex.html123<div id="test"> <span>Lorem ipsum dolor amet</span></div> getHTML.js1234567891011client .getHTML('#test', function(err, html) { console.log(html); // outputs the following: // "<div id="test"><span>Lorem ipsum dolor amet</span></div>" }) .getHTML('#test', false, function(err, html) { console.log(html); // outputs the following: // "<span>Lorem ipsum dolor amet</span>" }); Uses action/selectorExecute