feat(firefox): support ElementHandle.contentFrame() (#3917)

This commit is contained in:
Andrey Lushnikov
2019-02-05 13:29:49 -08:00
committed by GitHub
parent dd8bd6dcb1
commit 28087c291f
3 changed files with 15 additions and 2 deletions

View File

@@ -132,7 +132,7 @@ module.exports.addTests = function({testRunner, expect}) {
describe('ElementHandle.contentFrame', function() {
it('should work', async({page,server}) => {
await page.goto(server.EMPTY_PAGE);
await utils.attachFrame(page, 'frame1', server.EMPTY_PAGE);
await utils.attachFrame(page, 'frame1', server.EMPTY_PAGE2);
const elementHandle = await page.$('#frame1');
const frame = await elementHandle.contentFrame();
expect(frame).toBe(page.frames()[1]);