To learn more about using JavaScript in LeanFT, see Setting up and working with the JavaScript SDK.
For JavaScript code samples, see Code Samples - JavaScript.

BrowserFilter

Web. BrowserFilter

new BrowserFilter(propsopt) → {BrowserFilter}

Used to filter for the desired browser, when invoking the Attach method of the BrowserFactory.
Parameters:
Name Type Attributes Description
props Object <optional>
Initializes the BrowserFilter using the supplied property bag.
Returns:
the description object that was initialized.
Type
BrowserFilter

Methods

openTitle(titleopt) → {string|Description}

The object's initial title when first opened.
Parameters:
Name Type Attributes Description
title string <optional>
When provided, this method acts as a setter and sets openTitle to the specified value.
Returns:
If no parameter is provided, the method acts as a getter and returns the current stored openTitle; otherwise it returns 'this' for use with the builder pattern.
Type
string | Description

openURL(urlopt) → {string|Description}

The URL from which the object is first opened.
Parameters:
Name Type Attributes Description
url string <optional>
When provided, this method acts as a setter and sets openURL to the specified value.
Returns:
If no parameter is provided, the method acts as a getter and returns the current stored openURL; otherwise it returns 'this' for use with the builder pattern.
Type
string | Description

title(titleopt) → {string|Description}

The browser's title.
Parameters:
Name Type Attributes Description
title string <optional>
When provided, this method acts as a setter and sets the title to the specified value.
Returns:
If no parameter is provided, the method acts as a getter and returns the current stored title; otherwise it returns 'this' for use with the builder pattern.
Type
string | Description

type(browserTypeopt) → {string|Description}

The type of browser.
Parameters:
Name Type Attributes Description
browserType string <optional>
When provided, this method acts as a setter and sets the type property to the specified value.
Returns:
If no parameter is provided, the method acts as a getter and returns the current stored type; otherwise it returns 'this' for use with the builder pattern.
Type
string | Description

url(urlopt) → {string|Description}

The browser's current URL.
Parameters:
Name Type Attributes Description
url string <optional>
When provided, this method acts as a setter and sets the URL to the specified value.
Returns:
If no parameter is provided, the method acts as a getter and returns the current stored URL; otherwise it returns 'this' for use with the builder pattern.
Type
string | Description