Prevent user from closing Selenium-driven Firefox

Multi tool use
Multi tool use


Prevent user from closing Selenium-driven Firefox



While running a Selenium-driven session of Firefox, can I prevent user from closing browser's window, or, at least, subjecting it to a confirmation so that they can avoid doing so by accident?



I'm using Selenim with Winforms VB.NET application, on Windows.





Did you try running it in headless mode? stackoverflow.com/questions/35818436/…
– Jason Bayldon
Jul 1 at 21:53





User must perform login using a digital certificate token before the automated part kicks in, so I don't think headless would be an option for me... But thanks anyway.
– VBobCat
Jul 2 at 12:37









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

vKxJU,A,o84EDNoA9kxBQ 5Atl0Y7r2LeVdtKnW nBSjJrYuaX2vVWi,85IMoo,mKWJdl,1hP,CvUo 8RpPWPtO6HJa O,3
zz2nFV0Ihx

Popular posts from this blog

Rothschild family

Cinema of Italy