0

I use embedded videos on my website and want to automate a test that they all render properly. I could get the video's title and tried this in a browser's JavaScript:

var iframe = document.getElementById("iframe");
iframe.contentWindow.document;

and got a SecurityError similar to SecurityError: Blocked a frame with origin from accessing a cross-origin frame . I don't want to disable that security feature in my browser.

For reference, the website with the embedded video is https://emotionathletes.org/day1.

How can I get the title of an embedded video to make sure it displays on a website?

Lundin
  • 155,020
  • 33
  • 213
  • 341
miguelmorin
  • 3,611
  • 2
  • 15
  • 41

0 Answers0