Sorry for the misunderstanding. The popup I was referring to it's not a browser popup window but just a simple javascript popup so it's part of the same browser page. This happens when opening posts in the Instagram feed - when I click the post, a popup shows up and I can close it by clicking the X button or clicking anywhere outside the box and return to the feed I was into. But if for some reason, the post doesn't exist anymore, when I click, instead of showing the popup, I will be visiting a page like this one:
https://www.instagram.com/p/Bgo3e-9FUXa/ with an error "Sorry, this page isn't available."
To get back to my feed I'll have to use the browser back button, otherwise, if simply visiting the feed URL, I will lose my current feed position! This is the main downside of visiting the previous URL vs using the browser back button.
I was advised to use this for emulating the browser back button:
http://help.zennolab.com/en/v5/zennoposter/5.9/webframe.html#ZennoLab.CommandCenter~ZennoLab.CommandCenter.Tab~KeyEvent.html but not sure how to use it and what's role of the "
alt", "
ctrl", "
shift" keyModifers
.
I assume it should look something like this: instance.ActiveTab.KeyEvent("BrowserBack", "press", "ctrl"); but this doesn't work and, like I said, not sure why do I need
alt, ctrl or shift for
Not sure why is this so hard to emulate as this should be part of the basic browser emulation