Skip to content

Commit ae96602

Browse files
committed
Handle permission denied error upon attempt to start multiple Edge drivers
This only happens on Windows and Edge and we should consider the port owned when getting such an error. Potentially, this might lead to a worse case if user is not allowed to bind ports at all. In this case, we will end up looking for a port forever. Let's give it a shot anyway and see if it causes any problems for users.
1 parent 041c815 commit ae96602

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rb/lib/selenium/webdriver/common/port_prober.rb

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def self.random
4040

4141
IGNORED_ERRORS = [Errno::EADDRNOTAVAIL]
4242
IGNORED_ERRORS << Errno::EBADF if Platform.cygwin?
43+
IGNORED_ERRORS << Errno::EACCES if Platform.windows?
4344
IGNORED_ERRORS.freeze
4445

4546
def self.free?(port)

0 commit comments

Comments
 (0)