I solved these kinds of problems using the webdrive manager.
You can automatically use the correct chromedriver by using the webdrive-manager. Install the webdrive-manager:
pip install webdriver-manager
Then use the driver in python as follows
from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager driver = webdriver.Chrome(ChromeDriverManager().install())
This answer is taken from https://stackoverflow.com/a/52878725/10741023
Related Posts:
- SBOX_FATAL_MEMORY_EXCEEDED error shown when Chromedriver turned 1800-1900 pages using Selenium
- Running Selenium with Headless Chrome Webdriver
- When and how to use switchTo() method in webDriver (Selenium 2) to handle window/pop up
- selenium – chromedriver executable needs to be in PATH
- Wait for page load in Selenium
- How to get locator of current web element?
- How to select a drop-down menu value with Selenium using Python?
- How to use XPath preceding-sibling correctly
- When running WebDriver with Chrome browser, getting message, “Only local connections are allowed” even though browser launches properly
- Scroll Element into View with Selenium
- Call a Class From another class
- How to open a new tab using Selenium WebDriver in Java?
- Selenium Webdriver: Element Not Visible Exception
- Chrome Error: You are using an unsupported command-line flag: –ignore-certifcate-errors. Stability and security will suffer
- Is there a way to get element by XPath using JavaScript in Selenium WebDriver?
- ElementClickInterceptedException: element click intercepted:
- Test if element is present using Selenium WebDriver?
- Disable developer mode extensions pop up in Chrome
- Webdriver Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms
- Python- Robot Framework Rebot Using List
- How to re-enable right click so that I can inspect HTML elements in Chrome?
- Does mobile Google Chrome support browser extensions?
- Chrome theme new tab background does not fill correctly
- How to fix ‘Unchecked runtime.lastError: The message port closed before a response was received’ chrome issue?
- I am getting Failed to load resource: net::ERR_BLOCKED_BY_CLIENT with Google chrome
- When you use ‘badidea’ or ‘thisisunsafe’ to bypass a Chrome certificate/HSTS error, does it only apply for the current site? [closed]
- Chrome hangs after certain amount of data transfered – waiting for available socket
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- When you use ‘badidea’ or ‘thisisunsafe’ to bypass a Chrome certificate/HSTS error, does it only apply for the current site? [closed]
- Chrome not Firefox are not dumping to SSLKEYLOGFILE variable
- Error OPTIONS net::ERR_CONNECTION_REFUSED
- Chrome not Firefox are not dumping to SSLKEYLOGFILE variable
- What is a user agent stylesheet?
- No “Proceed Anyway” option on NET::ERR_CERT_INVALID in Chrome on MacOS
- Chrome returns “Bad Request – Request Too Long” when navigating to local IIS Express
- What is a user agent stylesheet?
- Jupyter Notebook not saving: ‘_xsrf’ argument missing from post
- Hide scroll bar, but while still being able to scroll
- NET::ERR_CERT_REVOKED in Chrome, when the certificate is not actually revoked
- Google Chrome forcing download of “f.txt” file
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- Chrome sendrequest error: TypeError: Converting circular structure to JSON
- Jupyter Notebook not saving: ‘_xsrf’ argument missing from post
- require is not defined? Node.js
- Chrome: Uncaught SyntaxError: Unexpected end of input
- Cannot open local file – Chrome: Not allowed to load local resource
- How to disable JavaScript in Chrome Developer Tools?
- Failed to load PDF document in Chrome
- Cannot open local file – Chrome: Not allowed to load local resource
- What does ==$0 (double equals dollar zero) mean in Chrome Developer Tools?
- Getting Error “Form submission canceled because the form is not connected”
- “CAUTION: provisional headers are shown” in Chrome debugger
- How to Fix ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY in IIS on Windows Server 2016
- Getting Error “Form submission canceled because the form is not connected”
- What is the meaning of == $0 that is shown in inspect element of google chrome for the selected element [duplicate]
- font-family is inherit. How to find out the font-family in chrome developer pane?
- ERR_INVALID_HTTP_RESPONSE using Angular 7 and ASP.Net Core 2.2 in Google Chrome browser
- ImportError: No module named ‘selenium’
- MacOS Catalina(v 10.15.3): Error: “chromedriver” cannot be opened because the developer cannot be verified. Unable to launch the chrome browser
- Where does Chrome keep the SQLite Database file it writes things like stored passwords to?
- Where does Chrome store cookies?
- element not interactable exception in selenium web automation
- SyntaxError: Unexpected Identifier in Chrome’s Javascript console
- ResizeObserver – loop limit exceeded
- stale element reference: element is not attached to the page document
- Chrome give error **Failed to load resource: net::ERR_NAME_NOT_RESOLVED** while other browser load images
- View google chrome’s cached pictures [closed]
- Export html table data to Excel using JavaScript / JQuery is not working properly in chrome browser
- Selenium using Python – Geckodriver executable needs to be in PATH
- Chrome net::ERR_INCOMPLETE_CHUNKED_ENCODING error
- What’s the difference between console.dir and console.log?
- How can I quickly retrieve a value from a MapIterator returned from Object.keys function?
- Easiest way to alter eBay page content/DOM
- Why does the URL http://a/%%30%30 crash Google Chrome?
- Disable same origin policy in Chrome
- Differences between socket.io and websockets
- Resource interpreted as stylesheet but transferred with MIME type text/html (seems not related with web server)
- Wait until page is loaded with Selenium WebDriver for Python
- Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH
- Uncaught SyntaxError: Unexpected token :
- Paused in debugger in chrome?
- Duplicate headers received from server
- Disable Chrome pinch zoom for use in kiosk
- blocked a frame of origin “null” from accessing a cross-origin frame – chrome
- Apps, Extensions and scripts cannot be added from this website
- How to use jQuery in chrome extension?
- Disable Chrome strict MIME type checking
- ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED in Google Chrome
- getElementsByAttribute() is not a function
- “AutoComplete=Off” not working on Google Chrome Browser
- How to make audio autoplay on chrome
- When you use ‘badidea’ or ‘thisisunsafe’ to bypass a Chrome certificate/HSTS error, does it only apply for the current site?
- Chrome/jQuery Uncaught RangeError: Maximum call stack size exceeded
- Why an inline “background-image” style doesn’t work in Chrome 10 and Internet Explorer 8?
- How to disable Google Chrome auto update?
- Uncaught Reference Error: stLight is not defined (in Chrome only)
- eclipse for chrome?
- Selenium — How to wait until page is completely loaded
- NoClassDefFoundError in Java: com/google/common/base/Function
- Why do fonts appear jagged in Chrome?