We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29ba2cf commit da45232Copy full SHA for da45232
seleniumbase/plugins/pytest_plugin.py
@@ -600,13 +600,14 @@ def pytest_runtest_teardown(item):
600
try:
601
self = item._testcase
602
603
- if hasattr(self, 'driver') and self.driver:
+ if hasattr(self, 'driver') and self.driver and (
604
+ "--pdb" not in sys.argv):
605
self.driver.quit()
606
except Exception:
607
pass
608
609
if hasattr(self, 'headless') and self.headless:
- if self.headless_active:
610
+ if self.headless_active and "--pdb" not in sys.argv:
611
if hasattr(self, 'display') and self.display:
612
self.display.stop()
613
0 commit comments