The getElementBrwObjFromPage() function returns an element's browser object instance from the specified page's browser page instance.

Syntax

bapi.helper.getElementBrwObjFromPage(*pageElementRequest*, *page*)

Parameters

pageElementRequest

The page element request string can be any of the following:

page

The browser page object relative to witch the request is being ran, if empty brwFormRoot is assumed.

Return Value

Returns an element's browser object instance from the specified page's browser page instance.

Example

bapi.helper.getElementBrwObjFromPage("308788", CURRENT_BROWSER_FORM);
bapi.helper.getElementBrwObjFromPage("root.308788");
bapi.helper.getElementBrwObjFromPage("page.301596.308788");

Result

// BrwObject 
{
	brwForm: BrwForm,
	of: {...},
	HTML: h2.css_20055.,
	evs: {...}
	...
}