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