From 525462a4e46e75a58bd37a5e3be4301012f7873f Mon Sep 17 00:00:00 2001 From: Lakshya Kapoor Date: Sat, 16 Jan 2021 23:45:24 -0800 Subject: [PATCH] Select msedgedriver build based on bitsize (32/64-bit) on Windows and WSLv1 --- lib/webdrivers/edgedriver.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/webdrivers/edgedriver.rb b/lib/webdrivers/edgedriver.rb index 49b4df89..88c20427 100644 --- a/lib/webdrivers/edgedriver.rb +++ b/lib/webdrivers/edgedriver.rb @@ -81,8 +81,8 @@ def linux_compatible?(driver_version) end def driver_filename(driver_version) - if System.platform == 'win' - 'win32' + if System.platform == 'win' || System.wsl_v1? + "win#{System.bitsize}" # 32 or 64-bit elsif linux_compatible?(driver_version) 'linux64' elsif System.platform == 'mac'