Connecting mutiple times to an already open firefox browser

43 views
Skip to first unread message

bjm3...@gmail.com

unread,
May 4, 2025, 5:34:01 AMMay 4
to Selenium Users
Hello everybody
I have spent a lot of time on this one with no result. What is feasible with the ChromeDriver-Browser does seem impossible with GeckoDriver-Firefox. The IAs have failed to give solutions that really work (yet offered several ways to do it including remotedriver).
Yet for degugging I find the approach most efficient as I can restart my code on the already opened page.

So can anybody confirm me that indeed I cannot do with Firefox as I do with Chrome ?
If there is indeed a solution I would be most grateful if somebody could indicate it to me.

Thanks very much in advance for any answer on this subject

PS environment Windows 11, visual studio, Net8, VB

David

unread,
May 4, 2025, 11:06:22 PMMay 4
to Selenium Users
I am unaware any such possibility for Firefox, but others can confirm.

Assuming no possibility at the moment, your best alternative or workaround would be to execute the code for Firefox to run normally but invoke a breakpoint at some desired point of the test/automation, and do your debugging starting from there, your debugging from then on can be done interactively in shell like environment for languages that support it (e.g. python, Java), if you started it in a script/shell/CLI like fashion and invoke a breakpoint that would return you to the language's interpreter where you can continue to manually execute Selenium WebDriver API calls from the language as well as other code in the language.

But given your specified environment, I'm not sure whether you can do that breakpoint into interpreter shell technique for VB and .NET 8, hopefully you can. Otherwise, maybe closest technique might be to try with PowerShell or IronPython with WebDriver.

Reply all
Reply to author
Forward
0 new messages