t_capability("useAutomationExtension", "false") Then, use the driver.capabilities command to get the Microsoft Edge Chromium version in python, more detail, please check the following code (remember to change the path to yours): import timeįrom import Options I have to automate getting edge chromium browser version in python.ĭo you mean you want to use selenium Edge webdriver to do the automate test? If that is the case, you could refer to this article to download the correct Microsoft WebDriver version for your build of Microsoft Edge, and download a WebDriver language binding of your choice. Tested with Python 3.8.2 on Windows 10 Version 1909 Process = subprocess.check_output(cmdArgs)ĮdgeVersion3 = re.sub("Version=", "", process.strip().decode()) Registry (Method 2) reg.exe QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\'".format(msedgeExe), "GET", "Version", "/value"] Registry (Method 1) reg.exe QUERY "HKEY_CURRENT_USER\Software\Microsoft\Edge\BLBeacon" /t REG_SZ /reg:32 /v version You can retrieve Microsoft Edge Chromium version programmatically: from Windows Registry or Windows Management Instrumentation (WMI) Database
0 Comments
Leave a Reply. |