Yes it's possible.
If you need to open a few different pages then just use Open WIth -> BrowserSim on each page (or on the same one) to open a few BrowserSim windows.
You can also open synchronized BrowserSim windows. Right click on the BrowserSim window -> Open Synchronized Window -> ...
Well, Synchronized Window won't work. What I need to be able to test:
- On page #1 there is a button
- The button opens a new browser window (page #2)
- The page #2 sends js callbacks to page #1
It works fine on real phone as e.g. iphone browser (safari) can open mulitple windows. But in BrowserSim I haven't found a way how to keep both pages (#1 & 2) opened so that they can communicate together.
There is no support for windows with child-parent relationship in BrowserSim. There is menu item "Open Link in New Window" on Left mouse click on link, but it does the same what "Open Link" menu does.
If I understand you correctly, you want to create a child browser window via window.open(), and then reference parent window via window.opener?
Unfortunately, BrowserSim does not support child-parent relationship between different windows. All calls to window.open(url) behave as if you do window.location = url, i.e. BrowserSim just opens given url in the current window.
Is it possible to implement?
I believe we could implement it by showing/hiding different browser widgets in one BrowserSim window. It would look pretty similar to the native Android/iPhone behavior.
Just created https://issues.jboss.org/browse/JBIDE-15277 .