Skip to content

Commit eb6f4d1

Browse files
committed
Race through chart display if running in headless mode
1 parent 2c1f586 commit eb6f4d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3885,6 +3885,8 @@ def display_chart(self, chart_name=None, filename=None, interval=0):
38853885
interval - The delay time for auto-advancing charts. (in seconds)
38863886
If set to 0 (default), auto-advancing is disabled.
38873887
"""
3888+
if self.headless:
3889+
interval = 1 # Race through chart if running in headless mode
38883890
if not chart_name:
38893891
chart_name = "default"
38903892
if not filename:

0 commit comments

Comments
 (0)