From 6318ba6e4afd3da0e529e1843f14de3e9c300b5f Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Wed, 5 Feb 2020 17:20:23 -0800 Subject: [PATCH] feat(frame): introduce frame.frameElement (#856) Fixes #839. --- docs/api.md | 14 ++++++++++++++ src/chromium/crPage.ts | 12 ++++++++++++ src/firefox/ffPage.ts | 17 +++++++++++++++++ src/frames.ts | 4 ++++ src/page.ts | 1 + src/webkit/wkPage.ts | 17 +++++++++++++++++ test/frame.spec.js | 30 ++++++++++++++++++++++++++++++ 7 files changed, 95 insertions(+) diff --git a/docs/api.md b/docs/api.md index 935670dedd1e7..e399429e2f84a 100644 --- a/docs/api.md +++ b/docs/api.md @@ -1676,6 +1676,7 @@ An example of getting text from an iframe element: - [frame.evaluateHandle(pageFunction[, ...args])](#frameevaluatehandlepagefunction-args) - [frame.fill(selector, value, options)](#framefillselector-value-options) - [frame.focus(selector, options)](#framefocusselector-options) +- [frame.frameElement()](#frameframeelement) - [frame.goto(url[, options])](#framegotourl-options) - [frame.hover(selector[, options])](#framehoverselector-options) - [frame.isDetached()](#frameisdetached) @@ -1916,6 +1917,19 @@ If there's no text ``, `