Search code examples
pythonselenium-chromedriverundetected-chromedriver

I got an error running undetected_chromedriver.v2 as uc


import undetected_chromedriver.v2 as uc
driver = uc.Chrome()
driver.get('https://nowsecure.nl')

enter image description here


Solution

  • You must add "use_subprocess=True" to closure like this:

    import undetected_chromedriver.v2 as uc
    driver = uc.Chrome(use_subprocess=True)
    driver.get('https://nowsecure.nl')