RIDE uses the chrome browser: Message: 'chromedriver' executable needs to be in PATH.

An error occurs when writing tests using RIDE.

Message: 'chromedriver' executable needs to be in PATH.

Reason: There is no chrome driver.

Solution:

1 Determine your browser version

chrome://version/

My version is 85.0 

2 Find the corresponding chrome driver

http://chromedriver.storage.googleapis.com/index.html

I found a version similar to mine, click,

Then choose the operating system that suits you. I chose win32 (although this machine is win64, but it doesn’t matter), and then download it.

3 Move the downloaded chromedriver.exe to your chrome application folder

Mine is in C:\Program Files\Google\Chrome\Application. I found it based on my actual situation and moved chromedriver.exe to C:\Program Files\Google\Chrome\Application.

4 Configure environment variables

Copy the C:\Program Files\Google\Chrome\Application ( the path here is the path of your local machine, do not copy directly ) path

As shown in the picture, add the variable you just copied to PATH, and then click OK, OK, OK (do not click the cross directly, as this is equivalent to not gaining muscle)

5 Restart RIDE

This step cannot be omitted, otherwise it will not be effective.

Guess you like

Origin blog.csdn.net/fenger_c/article/details/108853695