Selects an iframe, and returns its scoped Context.
The Context to scope the selection.
An iframe selector or nested iframe selectors joined by >>.
>>
Optional
A new Context scoped from the selected iframe.
The selector supports navigating nested iframes using >>:
iframe#outer >> iframe#inner
iframe#inner
iframe#outer
const iframeCtx = await getFrame(ctx, 'iframe#some-frame');await click(iframeCtx, 'button#submit');const nestedIframeCtx = await getFrame(ctx, 'iframe#outer >> iframe#inner');await click(nestedIframeCtx, 'button#submit'); Copy
const iframeCtx = await getFrame(ctx, 'iframe#some-frame');await click(iframeCtx, 'button#submit');const nestedIframeCtx = await getFrame(ctx, 'iframe#outer >> iframe#inner');await click(nestedIframeCtx, 'button#submit');
Selects an iframe, and returns its scoped Context.