How to run selenium python script in current window session?
When I write a selenium python script I need to start a session with some command like
driver = webdriver.Firefox()
However, this opens a new browser window.
I would like to open access to an open script window as if I were running the selenium IDE add-on (which cannot run afaik python scripts).
Can anyone tell me if there is a way to do this?
+3
source to share
1 answer
I've wanted this functionality a lot with Selenium and Python. Unfortunately, it is not part of the current Selenium features.
For more information check out the answers:
Can Selenium interact with an existing browser session?
(it looks like someone came up with a hack solution, but I haven't tested it)
and here:
Can selenium webdriver connect to an already open browser window?
Good luck!
+1
source to share