import pytest
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager


@pytest.fixture(scope="function")
def browser():
    options = webdriver.ChromeOptions()
    options.add_argument('ignore-certificate-errors')
    options.add_argument("--headless")
    options.add_argument('--no-sandbox')
    options.add_argument('start-maximized')
    options.add_argument('disable-infobars')
    options.add_argument("--disable-extensions")

    driver = webdriver.Chrome(ChromeDriverManager().install(), options=options)
    yield driver
    driver.quit()

[(6, 'pytest.fixture', 'pytest.fixture', False, 'import pytest\n'), (8, 'selenium.webdriver.ChromeOptions', 'webdriver.ChromeOptions', False, 'from selenium import webdriver\n'), (16, 'webdriver_manager.chrome.ChromeDriverManager', 'ChromeDriverManager', False, 'from webdriver_manager.chrome import ChromeDriverManager\n')]