Selects an IFrame, and returns its scoped Context.
The Context to scope the selection.
A selector to an IFrame element.
Optional
A new Context scoped from the selected IFrame.
If you need to select an iframe nested inside another iframe, use getNestedFrame instead.
getNestedFrame
const iframeCtx = await getFrame(ctx, 'iframe#some-frame');await click(iframeCtx, 'button#submit'); Copy
const iframeCtx = await getFrame(ctx, 'iframe#some-frame');await click(iframeCtx, 'button#submit');
Selects an IFrame, and returns its scoped Context.