@@ -1772,14 +1772,28 @@ def get_remote_driver(
1772
1772
pip_find_lock = fasteners .InterProcessLock (
1773
1773
constants .PipInstall .FINDLOCK
1774
1774
)
1775
- with pip_find_lock :
1775
+ with pip_find_lock : # Prevent issues with multiple processes
1776
1776
try :
1777
1777
from seleniumwire import webdriver
1778
+ import blinker
1779
+ try :
1780
+ use_blinker_ver = constants .SeleniumWire .BLINKER_VER
1781
+ if blinker .__version__ != use_blinker_ver :
1782
+ shared_utils .pip_install (
1783
+ "blinker" , version = use_blinker_ver
1784
+ )
1785
+ except Exception :
1786
+ pass
1787
+ del blinker
1778
1788
except Exception :
1789
+ shared_utils .pip_install (
1790
+ "blinker" , version = constants .SeleniumWire .BLINKER_VER
1791
+ )
1779
1792
shared_utils .pip_install (
1780
1793
"selenium-wire" , version = constants .SeleniumWire .VER
1781
1794
)
1782
1795
from seleniumwire import webdriver
1796
+ warnings .simplefilter ("ignore" , category = DeprecationWarning )
1783
1797
else :
1784
1798
from selenium import webdriver
1785
1799
@@ -2186,17 +2200,31 @@ def get_local_driver(
2186
2200
downloads_path = DOWNLOADS_FOLDER
2187
2201
b_path = binary_location
2188
2202
if use_wire :
2189
- driver_fixing_lock = fasteners .InterProcessLock (
2190
- constants .MultiBrowser . DRIVER_FIXING_LOCK
2203
+ pip_find_lock = fasteners .InterProcessLock (
2204
+ constants .PipInstall . FINDLOCK
2191
2205
)
2192
- with driver_fixing_lock : # Prevent multi-processes mode issues
2206
+ with pip_find_lock : # Prevent issues with multiple processes
2193
2207
try :
2194
2208
from seleniumwire import webdriver
2209
+ import blinker
2210
+ try :
2211
+ use_blinker_ver = constants .SeleniumWire .BLINKER_VER
2212
+ if blinker .__version__ != use_blinker_ver :
2213
+ shared_utils .pip_install (
2214
+ "blinker" , version = use_blinker_ver
2215
+ )
2216
+ except Exception :
2217
+ pass
2218
+ del blinker
2195
2219
except Exception :
2220
+ shared_utils .pip_install (
2221
+ "blinker" , version = constants .SeleniumWire .BLINKER_VER
2222
+ )
2196
2223
shared_utils .pip_install (
2197
2224
"selenium-wire" , version = constants .SeleniumWire .VER
2198
2225
)
2199
2226
from seleniumwire import webdriver
2227
+ warnings .simplefilter ("ignore" , category = DeprecationWarning )
2200
2228
else :
2201
2229
from selenium import webdriver
2202
2230
0 commit comments