MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / firefox_options

Function firefox_options

py/conftest.py:760–774  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

758
759@pytest.fixture
760def firefox_options(request):
761 try:
762 driver_class = request.config.option.drivers[0].lower()
763 except (AttributeError, TypeError):
764 raise Exception("This test requires a --driver to be specified") from None
765
766 # skip if not Firefox
767 if driver_class != "firefox":
768 pytest.skip(f"This test requires Firefox. Got {driver_class}")
769
770 _skip_unless_remote(request, request.config.getoption("remote"))
771
772 options = Driver.clean_options("firefox", request)
773
774 return options
775
776
777@pytest.fixture

Callers

nothing calls this directly

Calls 3

_skip_unless_remoteFunction · 0.85
skipMethod · 0.80
clean_optionsMethod · 0.80

Tested by

no test coverage detected