(request)
| 760 | |
| 761 | @pytest.fixture |
| 762 | def 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 |
nothing calls this directly
no test coverage detected