Chrome WebDriver Test with Selenium Python API

Q

How to use Chrome WebDriver with Google ChromeDriver?

✍: FYIcenter.com

A

If you are using the Chrome WebDriver with the Selenium Python API, you need to make 'chromedriver' executable available in PATH environment variable.

1. Include path name of the 'chromedriver' executable in PATH environment variable.

C:\fyicenter> dir \fyicenter\selenium\chromedriver
         8,393,728 chromedriver.exe

C:\fyicenter>set path=\fyicenter\selenium\chromedriver;%path%

2. Run the ChromeTest.py again.

C:\fyicenter> python ChromeTest.py 

DevTools listening on 
ws://127.0.0.1:65464/devtools/browser/80bd10b2-a2c6-4103-b41a-ae0c487798e9

You see that the Chrome browser is started and stopped correctly with no errors.

 

Selenium Chrome WebDriver Logging in Python

Chrome WebDriver Script with Selenium Python API

Starting with Selenium WebDriver Client Python API

⇑⇑ Selenium Tutorials

2019-11-21, 1342🔥, 0💬