Skip to content

Commit 42bb9f2

Browse files
authored
Update utils.py (#192)
PR for #191
1 parent 34559a0 commit 42bb9f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webdriver_manager/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def firefox_version():
162162
cmd_mapping = {
163163
OSType.LINUX: 'firefox --version',
164164
OSType.MAC: r'/Applications/Firefox.app/Contents/MacOS/firefox --version',
165-
OSType.WIN: r"(Get-Item (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\firefox.exe').'(Default)').VersionInfo.ProductVersion",
165+
OSType.WIN: r"Powershell (Get-Item (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\firefox.exe').'(Default)').VersionInfo.ProductVersion",
166166
}
167167
cmd = cmd_mapping[os_name()]
168168
version = None

0 commit comments

Comments
 (0)