I have an iframe which lets say that it contains the following text:
<h1> Hello World</h1><h2>Good Morning</h2>
<h3>Try this http://www.google.com</h3></body></html>
I want to read the link found above and visit it. Any idea? I cannot do it using the console because I need to get the cookies from this page
You can’t do it unless the iframe is of the same domain as the parent page.
In case it is then you can use the following script:
Then you will simply have to filter out the link from the other text from the variable.