Function getNestedFrame

  • Selects a nested IFrame, and returns its scoped Context.

    Parameters

    • ctx: Context

      The Context to scope the selection.

    • selectors: string[]

      Selectors to each nested IFrame element.

    Returns Promise<Context>

    A new Context scoped from the innermost selected IFrame.

    const iframeCtx = await getNestedFrame(ctx, ['iframe#top-frame','iframe#nested-frame']);
    await click(iframeCtx, 'button#submit');