I am developing a application in which we need to check if the web application is running and the url giving the expected results.
Our Scheduler run this application 12 times a day. In every launch the firefox driver gets executed and a new browser window opens to perform the operations.
I want a technique where we open the firefox browser 1 time and reuse it in every call by selenium-driver.
I am actually not entirely sure you can switch to a window not spawned by the driver. I think the people working on the selenium 2 project have worked a little bit on switching to a window spawned by a different driver. When you do:
All you get are the windows spawned by the driver object it is called on.
This is a pretty old feature request: Allow webdriver to attach to a running browser . So it’s not possible right now.