Take the tour ×    Maybe it's how I'm starting Selenium in my
.py files?   ...perhaps I'm doing too many server starts?
share|improve this question add comment  3 Answers  up vote 4
down vote accepted   share|improve this answer Funny, I was just
reading about this this morning, and I think it will solve my
browser windows problem. Thank you. –  Aaron S. Oct 19 '11 at
18:19 add comment   share|improve this answer add comment  I
have done it in the past by declaring my Selenium driver
instance as a static member loaded by the entire test suite.
Then, pass that member as an argument to each test. Then, I also
created some methods to keep track of how many windows are open
and make sure that the last window is never closed. Then, after
each test I close all windows except for the last one and
redirect the last window to "about:blank". Then, as my tests
run, it reuses the windows.  I have since then, abandoned this
method because I no longer need it, for the following reasons:
1. Using a static global webdri