import pytest @pytest.fixture def firefox_options(firefox_options): firefox_options.add_argument('--headless') return firefox_options