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

Function firefox_options

py/conftest.py:762–776  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

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