Web.BrowserContents

This function retrieves the HTML content of a specified URL as it would appear in a web browser. An optional parameter, options, can be provided to specify additional properties. The options parameter...

Syntax

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

About

This function retrieves the HTML content of a specified URL as it would appear in a web browser. An optional parameter, options, can be provided to specify additional properties. The options parameter can include the following fields: - ApiKeyName: If the target website requires an API key, this field specifies the name (not the value) of the key parameter that should be included in the URL. The actual key value is provided in the credential. - WaitFor: This field specifies a condition to wait for before fetching the HTML content. It can be a record with Timeout and/or Selector fields. If only a Timeout is provided, the function will wait for the specified amount of time before fetching the HTML. If both a Selector and Timeout are provided, and the Timeout elapses before the Selector appears on the page, an error will be generated. If a Selector is provided without a Timeout, a default Timeout of 30 seconds is applied.