Header Ads

ad728
  • Breaking News

    NoSuchDriverException: Unable to obtain driver for chrome using Selenium Manager




    Below is the error:

    selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain driver for chrome using Selenium Manager.; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location


    To fix the above error, set the path to Service(). Use the code shown below: 

    Check your chrome version before downloading chromedriver.

    Download chromedriver from here: https://googlechromelabs.github.io/chrome-for-testing/

    ---------------------------------------------------------------------------------------------------------------
    from selenium import webdriver
    from selenium.webdriver.chrome.service import Service

    path = "replace this with your chrome driver path"
    service = Service(executable_path=path)

    driver = webdriver.Chrome(service=service)

    ---------------------------------------------------------------------------------------------------------------
    If this solution works for you, please drop a "Thank you" in the comments section.

    No comments