0

I need to click on an element that is included into iframe that:

  • is not hosted on same domain than the Parent document (accessing a cross-origin frame)
  • was dynamically created by JS

I read that:

Access isolated iframe chrome extension of a cross origin domain

But this does not work on dynamically created iframe.

I tried to tun chrome with --disable-web-security Still got an error : "Blocked a frame with origin from accessing a cross-origin frame"

Any idea on how do do that ?

yarek
  • 10,010
  • 26
  • 106
  • 195
  • Declare your content script with `"all_frames": true` or inject it with `allFrames: true`. Every iframe and the main page will each run an instance of the script. – wOxxOm Jul 25 '21 at 16:09

0 Answers0