Files
n8n-enterprise-unlocked/packages/testing/playwright/pages/IframePage.ts

16 lines
315 B
TypeScript

import { BasePage } from './BasePage';
export class IframePage extends BasePage {
getIframe() {
return this.page.locator('iframe');
}
getIframeBySrc(src: string) {
return this.page.locator(`iframe[src="${src}"]`);
}
async waitForIframeRequest(url: string) {
await this.page.waitForResponse(url);
}
}