Web.BrowserContents
Web.BrowserContents
function (url
as text, optionaloptions
as nullable record) as text
Returns the HTML for the specified
url
, as viewed by a web browser. An optional record parameter, options
, may be provided to specify additional properties. The record can contain the following fields: Web.BrowserContents("https://microsoft.com")
"<!DOCTYPE html><html xmlns=..."
Web.BrowserContents("https://microsoft.com", [WaitFor = [Selector = "div.ready"]])
"<!DOCTYPE html><html xmlns=..."
Web.BrowserContents("https://microsoft.com", [WaitFor = [Timeout = #duration(0,0,0,10)]])
"<!DOCTYPE html><html xmlns=..."
Returns the HTML for https://microsoft.com after waiting up to ten seconds for a CSS selector to exist.
Web.BrowserContents("https://microsoft.com", [WaitFor = [Selector = "div.ready", Timeout = #duration(0,0,0,10)]])
"<!DOCTYPE html><html xmlns=..."
Last modified 4yr ago