Discussion:
[jboss-user] [JBoss Tools] - BrowserSim - multiple browser windows
Radek Pribyl
2013-07-09 10:17:29 UTC
Permalink
Radek Pribyl [https://community.jboss.org/people/merlinvonslivno] created the discussion

"BrowserSim - multiple browser windows"

To view the discussion, visit: https://community.jboss.org/message/827074#827074

--------------------------------------------------------------
Hi all,

is it possible in BrowserSim to have multiple browser windows open? I need to test an application which opens another browser window on button click and then communicates through js callbacks.

Is there such option available in BrowserSim?

Thanks.
Radek
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/827074#827074]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Alexey Kazakov
2013-07-09 17:04:24 UTC
Permalink
Alexey Kazakov [https://community.jboss.org/people/akazakov] created the discussion

"Re: BrowserSim - multiple browser windows"

To view the discussion, visit: https://community.jboss.org/message/827148#827148

--------------------------------------------------------------
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 -> ...
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/827148#827148]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Radek Pribyl
2013-07-09 21:45:32 UTC
Permalink
Radek Pribyl [https://community.jboss.org/people/merlinvonslivno] created the discussion

"Re: BrowserSim - multiple browser windows"

To view the discussion, visit: https://community.jboss.org/message/827192#827192

--------------------------------------------------------------
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.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/827192#827192]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Denis Golovin
2013-07-09 23:53:08 UTC
Permalink
Denis Golovin [https://community.jboss.org/people/dgolovin] created the discussion

"Re: BrowserSim - multiple browser windows"

To view the discussion, visit: https://community.jboss.org/message/827199#827199

--------------------------------------------------------------
There is no support for unsincronized windows 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.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/827199#827199]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Yahor Radtsevich
2013-07-10 17:12:25 UTC
Permalink
Yahor Radtsevich [https://community.jboss.org/people/yradtsevich] created the discussion

"Re: BrowserSim - multiple browser windows"

To view the discussion, visit: https://community.jboss.org/message/827374#827374

--------------------------------------------------------------
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.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/827374#827374]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Denis Golovin
2013-07-23 05:49:10 UTC
Permalink
Denis Golovin [https://community.jboss.org/people/dgolovin] created the discussion

"Re: BrowserSim - multiple browser windows"

To view the discussion, visit: https://community.jboss.org/message/829206#829206

--------------------------------------------------------------
Is it possible to implement?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/829206#829206]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Yahor Radtsevich
2013-07-23 09:32:04 UTC
Permalink
Yahor Radtsevich [https://community.jboss.org/people/yradtsevich] created the discussion

"Re: BrowserSim - multiple browser windows"

To view the discussion, visit: https://community.jboss.org/message/829251#829251

--------------------------------------------------------------
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.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/829251#829251]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Loading...