Power Query
Search…
Web.BrowserContents

Web.BrowserContents

Web.BrowserContents
function (url as text, optional options as nullable record) as text

Description

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:

Category

Examples

Returns the HTML for https://microsoft.com.
1
Web.BrowserContents("https://microsoft.com")
Copied!
"<!DOCTYPE html><html xmlns=..."
Returns the HTML for https://microsoft.com after waiting for a CSS selector to exist.
1
Web.BrowserContents("https://microsoft.com", [WaitFor = [Selector = "div.ready"]])
Copied!
"<!DOCTYPE html><html xmlns=..."
Returns the HTML for https://microsoft.com after waiting ten seconds.
1
Web.BrowserContents("https://microsoft.com", [WaitFor = [Timeout = #duration(0,0,0,10)]])
Copied!
"<!DOCTYPE html><html xmlns=..."
Returns the HTML for https://microsoft.com after waiting up to ten seconds for a CSS selector to exist.
1
Web.BrowserContents("https://microsoft.com", [WaitFor = [Selector = "div.ready", Timeout = #duration(0,0,0,10)]])
Copied!
"<!DOCTYPE html><html xmlns=..."