How Do I programmatically determine the versions of the Chrome Browser and Chrome Web Driver

129 views
Skip to first unread message

Frank Gunseor

unread,
Mar 9, 2021, 1:50:26 PM3/9/21
to chromedri...@googlegroups.com
Hello,

Is there a way to programmatically determine the versions of the Chrome Browser and Chrome Web Driver so the users of my code can be sure they are up-to-date?
This seems to be the main reason for support calls and breaking my code.
THe users are NOT IT people or very program astute.

Frank

JanH

unread,
Mar 10, 2021, 11:35:25 AM3/10/21
to ChromeDriver Users
Hi Frank.

I do this from C# code:

var browser_ver = driver.Capabilities["browserVersion"].ToString();    // eg. "76.0.3809.132"

 var chrome = (Dictionary<string, object>)driver.Capabilities["chrome"];
 var Chromedriver_ver_string = chrome["chromedriverVersion"].ToString();

Austin West

unread,
Mar 10, 2021, 11:56:13 AM3/10/21
to ChromeDriver Users
Whats driver here? Just checking local machine or a way to pull through an API?
Thanks in advance 
-Austin

JanH

unread,
Mar 12, 2021, 5:00:29 AM3/12/21
to ChromeDriver Users
Driver is just plain Chromedriver:

 driver = new ChromeDriver();

Reply all
Reply to author
Forward
0 new messages