![]() 150 with binary path /Applications/Google Chrome. : Message: session not created: This version of ChromeDriver only supports Chrome version 89Ĭurrent browser version is. If you meet an error message like below, it means the google chrome driver version does not match the google chrome web browser version, you should download the google chrome driver which version matches your installed google chrome web browser.You can also add the google ChromeDriver executable file path in the OS PATH environment variable value, then you can run google chrome web browser like below.> browser = webdriver.Chrome(executable_path = '/Users/songzhao/Downloads/chromedriver') # The executable_path is the google chromedriver executable file saved path. If you see a blank google chrome web browser, that means the google ChromeDriver has been installed successfully, you can use it in your python selenium script. Verify the google ChromeDriver installation by executing the below python script in the python interaction console.Location: /Library/Frameworks/amework/Versions/3.7/lib/python3.7/site-packages (base) songs-MacBook-Pro:~ songzhao$ pip show selenium Requirement already satisfied: urllib3 in /Library/Frameworks/amework/Versions/3.7/lib/python3.7/site-packages (from selenium) (1.25.3) (base) songs-MacBook-Pro:~ songzhao$ pip install seleniumĭownloading 圓-none-any.whl (904 kB) ![]() Make sure the python selenium package has been installed on your os with the command pip show selenium, if the python selenium package is not installed then run the command pip install selenium to install it.If the above command failed, you can run the command brew cask install chromedriver in a terminal to install again.Run command brew install chromedriver in a terminal. For any driver that Selenium must use to open the browser (chromedriver, geckodriver, etc), you dont have to worry about where it is installed, as long as its set in the PATH variable.If you have it set in the OS PATH variable, you must be able to run it from the command or cmd (its always good to make sure its working).
0 Comments
Leave a Reply. |