I've a similar issue. This method works correctly? I was trying to access one element inside an iframe on a different origin. But it is restricted by the same-origin policy for security reasons. I'm not sure I can resolve this issue. Thanks!