Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

242
Vistas
Python Selenium flooding temp directory, need to close selenium session without closing the browser

I'm using selenium in a python script to launch a Firefox browser that's using a js code as an extension for checking some data on a website and alerts me when the data changes.

The js code is responsible for closing the browser window after certain time. Everything works smoothly, the only problem is that because the js extension is closing the browser, the temp files of the Selenium webdriver won't delete. I need to delete the temp folder every day manually because of that temp files flooding.

Is there any way to close the webdriver session without terminating the browser session? I need to keep the browser that Selenium have opened but close the Selenium properly so it will delete all of the temp files. I've read about a detach method in Selenium but it's not working for me. (I've seen some users saying that's it's not working at all in another discussion on the forum)

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda