Switch to new window without parent reference in Selenium webdriver - window

In Internet Explorer, once I hit the URL it opens a new window and closes the old one immediately.
How can I keep this from happening?

Related

Preventing project execution from stopping when moving Chrome tab to another window

Whenever I execute an MVC project that opens on Google Chrome, it opens a new window with the website. I have tried several times to move it to another Chrome window which already has several tabs, but whenever I do that, the Project stops executing.
Is there a way to prevent that from happening? Thank you.
Notes: I run the project on Debug mode, with the Google Chrome explorer.

How to keep Aptana tests in a single tab?

Each time I run or debug a webpage in Aptana, it opens a new tab or window in Firefox. After several runs, there are either a Firefox window with more than one tabs or multiple Firefox windows.
How could I let the Firefox reload a tab for each test run, instead of open a new tab/window each time?
You could just "save all changes" instead of make a test run. Then reload the page on firefox.

New Browser window in Windows Phone with Phonegap/Jquery Mobile

How to open new Browser window in Windows Phone with Phonegap and Jquery Mobile?
I tried everything i could think of:
link name
With javscript window.open
etc
I can't get it to open in a new window. The problem is when it opens now it its inside the "webview" and when pressing the back button the application closes, it should go back to the prev page. Or it should open in a new window/outside the app (aka internet explorer).
There 2 possible solutions:
A way to open it outside the application
Open it inside but should be able to get back to the prev bage with the back button

Having debugger open Firefox in current tab instead of creating new tab

So every time I run a debug from my development IDE and Firefox is called to display my app, I get my app displayed in a new Firefox tab. That means one new tab every time I start a debug session and before long I've got 10-20 Firefox tabs open.
Can I have it so it reuses the existing tab open?
I could only find Firefox command line options to open new windows etc, not to use the current window/tab.
Just in case the above link disappears, it details going to the about:config screen in Firefox (just enter about:config in address bar) and changing the value of 'browser.link.open_newwindow' from 3 to 1.

Internet Explorer 8 - Session Shared among Explorer Window

IE 8 sharing session among different Explorer Window for same domain.
Like if you are a logined at hotmail.com in IE 8, and you have open another explorer window for hotmail.com, you will automatically logined.
This was not in IE 7, In IE 7 session has shared in the same explorer tab rather different Explorer Window.
Can anyone have a idea about this, Whether it is bug or something else in IE 8
Use
File -> New Session
Well, it is not a bug. Browsers usually share data via cookies. IE8 have this 'new session' feature to let you use multiple email accounts (and similar services) with multiple browsers.
Modify IE8 Shortcut to Permanently Launch New IE Browser Window in New Session
Right click on the IE8 shortcut (all IE8 shortcuts or icons on desktop, Start Menu, Quick Launch bar or Taskbar that you want it to run as a new instance session have to be changed), and choose Properties from the right click context menu. Then, append -nomerge to the end of the of the program path in “Target” text box at “Shortcut” tab. For example,
“C:\Program Files\Internet Explorer\iexplore.exe” -nomerge
link
http://www.mydigitallife.info/2009/07/22/run-separate-isolated-ie8-window-frame-session-with-nomerge-switch-for-multiple-logins/
Create a new shortcut to ieplore.exe, add the -nomerge switch. This will always start a new session.
I prefer using "Run" and just type "iexplore.exe -nomerge"
Your question isn't that clear.
Are saying in IE8 when you open a new window that window shares the same session as the previous window hence any login made in one is shared by the other?
If so then that would be normal behaviour and not any different to the way IE7 handled it.
OTH are you saying that when you open a new window in IE8 it doesn't continue to share the same session as the previous window? If you mean using the New Window action from the Page menu then that would appear to be a bug to me but it doesn't happen on my copy of IE8.
If by new window you mean starting a new instance of IE from quick links or Start menu then it would be correct for that to start a new session and not share session cookies with the other session you have running.
I suspect this last is the real situation, previously the standard IE link added to Start Menu or Desktop would simply open a new window using one of any existing IE sessions currently running, IE8 doesn't do that it will invoke a new session from this link.
You can prevent new windows from sharing session cookies by File -> New Session, however you cannot prevent new tabs from sharing data by default.
Any new window that you open (using iexplore.exe and not openning from inside another window) shares the same session as any previous.
Open a window and log in into your bank account.
Open another window (blank window).
Close the bank account window by clicking on the X.
Wait 5 minutes (just to emphasize the problem).
open another window and type the bank account address.
Result => You are logged into the bank account.
Don't tell me that this is not a bug. This is a huge one! (maybe a design bug)
Most users do not expect this behavior and complain that there is a "problem with our site" because they have another window open on some radiostation which makes sure the session of another site is persisted, I then have to explain to them that Microsoft/Google decided that that's the "right" way. The default should be -nomerge and not the other way around.

Resources