Retrieves an array of frame info objects representing the main frame and any iframes that are currently on the page.
Example
async function getAllFrames() {
const app = await fin.Application.create({
name: 'myApp',
uuid: 'app-1',
url: 'https://cdn.openfin.co/docs/javascript/stable/tutorial-Window.getAllFrames.html',
autoShow: true
});
await app.run();
const win = await app.getWindow();
return await win.getAllFrames();
}
getAllFrames().then(framesInfo => console.log(framesInfo)).catch(err => console.log(err));