Function selectFrame

  • Selects an IFrame, and returns its scoped Context.

    Parameters

    • ctx: Context

      The Context to scope the selection.

    • selector: string

      A selector to an IFrame element.

    • Optional options: WaitForSelectorOptions

    Returns Promise<Context>

    A new Context scoped from the selected IFrame.

    Remarks

    If you need to select an iframe nested inside another iframe, use selectNestedFrame instead.

    Example

    const iframeCtx = await selectFrame(ctx, 'iframe#some-frame');
    await click(iframeCtx, 'button#submit');

Generated using TypeDoc