The getElementBrwObjFromPage()
function returns an element's browser object instance from the specified page's browser page instance.
bapi.helper.getElementBrwObjFromPage(*pageElementRequest*, *page*)
pageElementRequest
The page element request string can be any of the following:
124
-implies the containing page is the current page. (page
argument is required)current.124
would retrieve element with id 124 from the current page (page
argument is required)
b. parent.124
would retrieve element with id 124 from the parent of the page (page
argument is required)
c. root.124
would retrieve element with id 124 from the root pagepage
The browser page object relative to witch the request is being ran, if empty brwFormRoot
is assumed.
Returns an element's browser object
instance from the specified page's browser page
instance.
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: {...}
...
}