def METHOD_NAME():
    # use the driver that exists in working directory - chromedriver and geckodriver supported
    find_geckodriver = Path("geckodriver")
    find_chromedriver = Path("chromedriver")
    if find_geckodriver.exists():
        driver = 'geckodriver'
        print('Using %s' % driver)
        PATH_TO_DRIVER = './%s' % driver
        firefox_options = Options_firefox()
        # run in headless mode
        firefox_options.headless = True
        # disable cookies to prevent popups
        opt = webdriver.FirefoxProfile()
        opt.set_preference("network.cookie.cookieBehavior", 2)
        browser = webdriver.Firefox(executable_path=PATH_TO_DRIVER, options=firefox_options, firefox_profile=opt)
    elif find_chromedriver.exists():
        driver = 'chromedriver'
        print('Using %s' % driver)
        PATH_TO_DRIVER = './%s' % driver
        chrome_options = Options_chrome()
        # run in headless mode
        chrome_options.add_argument('--headless')
        # disable cookies to prevent popups
        chrome_options.add_experimental_option('prefs', {'profile.default_content_setting_values.cookies': 2})
        browser = webdriver.Chrome(executable_path=PATH_TO_DRIVER, options=chrome_options)
    else:
        print('ERROR: No valid driver found. Only geckodriver or chromedriver is supported!')
        exit()
    return browser