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.
Web.BrowserContents("https://microsoft.com")
"<!DOCTYPE html><html xmlns=..."
Returns the HTML for https://microsoft.com after waiting for a CSS selector to exist.
Web.BrowserContents("https://microsoft.com", [WaitFor = [Selector = "div.ready"]])
"<!DOCTYPE html><html xmlns=..."
Returns the HTML for https://microsoft.com after waiting ten seconds.
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 3yr ago
Copy link
Outline
Web.BrowserContents
Description
Category
Examples