Skip to content

How to access an element inside an iframe? - use frame() but up to 2 layers #563

@songwp2024

Description

@songwp2024
<div id="root">
  <iframe  id="one">
    #document
      <iframe  id="two">
        #document
          <iframe id="target">
              <input  type="test" id="name">
          </iframe>
      </iframe>
  </iframe>
</div>

How can I get the element with id="name" and then type some text into it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions