-
1. Re: BrowserSim - multiple browser windows
akazakov Jul 9, 2013 1:04 PM (in response to merlinvonslivno)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 -> ...
-
2. Re: BrowserSim - multiple browser windows
merlinvonslivno Jul 9, 2013 5:45 PM (in response to akazakov)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.
-
3. Re: BrowserSim - multiple browser windows
dgolovin Jul 23, 2013 1:49 AM (in response to merlinvonslivno)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.
-
4. Re: BrowserSim - multiple browser windows
yradtsevich Jul 10, 2013 1:12 PM (in response to merlinvonslivno)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.
-
5. Re: BrowserSim - multiple browser windows
dgolovin Jul 23, 2013 1:49 AM (in response to yradtsevich)Is it possible to implement?
-
6. Re: BrowserSim - multiple browser windows
yradtsevich Jul 23, 2013 6:13 AM (in response to dgolovin)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 .