@pytest.yield_fixture
def browser():
    selenium = _browser()

    # Opera currently doesn't support maximize_window()
    if selenium.desired_capabilities["browserName"] not in {"opera"}:
        selenium.maximize_window()

    try:
        yield selenium
    finally:
        selenium.quit()
dataset/ETHPy150Open pypa/warehouse/tests/conftest.py/browser/original