geckodriver connecting to running Firefox
Publié : 11 mai 2025, 11:35
Hello everybody
I have been working on this one for some time but with no success. The IAs proposed various schemes which in the end were unproductive.
Here is the question:
In a Visual Studio, Net8, VB programming using Selenium I would like
1) my VB application to connect to Firefox (via Geckodriver) this is no problem
2) for some reason my code exits in error. I would like Firefox to remain open to the page where my code stopped.
3) I would look at the HTML, correct my code, restart and I would like to reconnect to the Firefox that was left open and contains my page of interest. Many times the code correction takes a few minutes so page would not be lost even if there is a timer on the page that will eventually close it.
This would be very valuable to me in the debugging stages in particular if there is a special pathway to access the open page.
This question involves the chain Selenium Webdriver - GeckoDriver - Firefox but given the fact that it is possible to do it with Chrome (although this looks more like a workaround) I am assuming the issue resides in the GeckoDriver-Firefox link and this is why I posted on this forum.
I thank in advance anyone who would help me on this topic.
I have been working on this one for some time but with no success. The IAs proposed various schemes which in the end were unproductive.
Here is the question:
In a Visual Studio, Net8, VB programming using Selenium I would like
1) my VB application to connect to Firefox (via Geckodriver) this is no problem
2) for some reason my code exits in error. I would like Firefox to remain open to the page where my code stopped.
3) I would look at the HTML, correct my code, restart and I would like to reconnect to the Firefox that was left open and contains my page of interest. Many times the code correction takes a few minutes so page would not be lost even if there is a timer on the page that will eventually close it.
This would be very valuable to me in the debugging stages in particular if there is a special pathway to access the open page.
This question involves the chain Selenium Webdriver - GeckoDriver - Firefox but given the fact that it is possible to do it with Chrome (although this looks more like a workaround) I am assuming the issue resides in the GeckoDriver-Firefox link and this is why I posted on this forum.
I thank in advance anyone who would help me on this topic.