"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DomFrameInfo = void 0;
const index_js_1 = require("../model/index.js");
class DomFrameInfo extends index_js_1.Pipe {
    async apply(inputSet, _ctx) {
        return await this.map(inputSet, async (el) => {
            const frame = el.remote.page.mainFrame();
            return el.clone({
                frameId: frame.frameId,
                url: frame.url,
                loaded: frame.loaded,
                ready: frame.ready,
                failed: frame.failed,
            });
        });
    }
}
exports.DomFrameInfo = DomFrameInfo;
DomFrameInfo.$type = 'Browser.getFrameInfo';
DomFrameInfo.$help = `
Returns information about current frame and its loading state.

### Use For

- implementing assertions on frame loading, readiness or failure to load
`;
//# sourceMappingURL=Browser.getFrameInfo.js.map