In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Preface: recently, some students have problems using firefox when learning Selenium, so they want to try chrome, but they encounter a variety of problems when using crome. The following articles are specially arranged for those who encounter this problem for reference.
The whole article: how to solve it? Please refer to the following.
Introduction to the basic environment:
Python3.5 + selenium2.48 (or above) + chrome (version 65.0.3325.181 64 bit), in which chrome has been updated to the latest version as of April 2018.
Download chromedriver.exe
The chromedriver.exe file is the driver file that calls chrome, so the version of the file must be compatible with the version of chrome
The chromedriver.exe download address is as follows: http://chromedriver.storage.googleapis.com/index.html
There are many versions of chromedriver.exe, and the version for chrome (version 65.0.3325.181) is the version shown below (2.37).
Click version 2.37 in the figure above.
3. Put the downloaded chromedriver.exe (2.37) into (copy or move) to the installation directory of chrome (the general installation path for chrome is as follows, C:\ Program Files (x86)\ Google\ Chrome\ Application)
4. Set the system environment variable to add the path of chrome to Path (the steps are as follows).
5. Open IDE (such as pycharm) to write code and test it as follows:
6. Running the code in step 5 is very likely to report an error, giving an error message similar to chromedriver.exe. Path. How to solve the problem?
Close all open chrome browsers and run them again.
If you close the chrome browser, it will not work, and you will report an error, then restart the computer and it should be fine.
7. After solving the problem in step 6, you can call chrome through selenium.
Conclusion: that's it. It's done. I hope it's helpful to you.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.