The getElementNodeFromPage()
function returns an element's instance DOM Node from the specified page's browser page instance.
bapi.helper.getElementNodeFromPage(*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 DOM Node
instance from the specified page's browser page
instance.
bapi.helper.getElementNodeFromPage("308788", CURRENT_BROWSER_FORM);
bapi.helper.getElementNodeFromPage("page.301661.309529");
Result
<h2 class="css_20055">text value</h2>