Tutorial: window.getAllFrames

window.getAllFrames

Retrieves an array of frame info objects representing the main frame and any iframes that are currently on the page.

Example

const successCallback = (info) => console.log(info); // see return value below
const errorCallback = (errStr, err) => console.log(err);
const myWindow = fin.desktop.Window.getCurrent();

myWindow.getAllFrames(successCallback, errorCallback);

// example info shape
[
    {
        "name": "OpenfinPOC",
        "uuid": "OpenfinPOC",
        "entityType": "window"
    },
    {
        "uuid": "OpenfinPOC",
        "name": "40c74b5d-ed98-40f7-853f-e3d3c2699175",
        "parent": {
            "uuid": "OpenfinPOC",
            "name": "OpenfinPOC"
        },
        "entityType": "iframe"
    },
    {
        "uuid": "OpenfinPOC",
        "name": "e40af018-82e8-4cbb-a1dc-92d3563a5ddb",
        "parent": {
            "uuid": "OpenfinPOC",
            "name": "OpenfinPOC"
        },
        "entityType": "iframe"
    }
]