[Xiaobai Daily] selenium+chromdriver (write automated test scripts in eclipse)

selenium+chromdriver (write automated test scripts in eclipse)

[Xiaobai Daily Record]
Problems encountered:
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
The version of WebDriver (that is, Chromedriver here) and the version of Chrome browser Mismatch.
Insert picture description here
Solution:
If you don’t know the version of your browser, you can enter chrome://version/ in the browser to query, and then you can go to http://chromedriver.storage.googleapis.com/index.html to download the corresponding WebDriver and replace it The previous Chromedriver.
If there is no way to replace it directly, and it shows that it is running, you can open the task manager to end the Chromedriver task, and then you can replace it.

Guess you like

Origin blog.csdn.net/qq_41870483/article/details/106322463