[Python] selenium chrome driver without cache

Discussão em 'Python' iniciado por Stack, Maio 22, 2025.

  1. Stack

    Stack Membro Participativo

    Maybe someone know how to surfing in Chrome without using browser cache? I run in loop get the pages in the incognito-mode and do not close the browser. But it seems it used cache, because the browser did not close.

    chrome_options.add_argument("--incognito")
    chrome_options.add_argument("--headless")
    chrome_options.add_argument("--disable-extensions")
    chrome_options.add_argument("--disable-java")

    driver = webdriver.Chrome(chrome_options=chrome_options)
    i = 1
    while i < 10:
    driver.get('https://selenium.com')
    browser.quit()

    Continue reading...

Compartilhe esta Página