Matterway
    Preparing search index...

    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');

      use getFrame instead.