I want to run a headless browser on the server within my Rails app. I want so share that browser's session with a web page in my app that users access through an iFrame in another web page in my app.
So for example:
- If a user clicked on a button in that iFrame, then the headless browser would click on the corresponding button in its browsing session.
- If the page updated within the headless browser's session, then the page within the iFrame would update in the same way.
I'm wondering if I might be able to achieve this using this. However, I'm guessing this would involve me embarking on a lengthy process of development, so before I dig too far into this potential rabbit warren, can I ask: is something like this even possible?