selenium-webdriver 3.141.592 → 3.141.5926
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98597f8b669dbd074c696ddca89ec8c4a3fd9cd9
|
4
|
+
data.tar.gz: '097e90bbf9abb8a1a7cccce8fbcad9b7ad674990'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8020fbcea75fd5aeef8ab8d8b2ed74667291d3166ed55a9cad23be3319824355579306bf62e2cd342b22ea5c41ec8571940378ca374d327fdff8c3bc837f35b
|
7
|
+
data.tar.gz: 138443d80b20220f2d008a33e283db77c34756fe0215edb95b584762ed186658c2b73cf77c945cd42e003dca5f6aba142b620c286eba3119898b5f2437d1c58a
|
data/CHANGES
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
3.141.5926 (2019-04-18)
|
2
|
+
=======================
|
3
|
+
|
4
|
+
Ruby:
|
5
|
+
* Fixed an issue when Selenium itself would print deprecation warning
|
6
|
+
for TimeoutError
|
7
|
+
* Fixed a regression when socket poller would raise Errno::EBADF on JRuby
|
8
|
+
|
1
9
|
3.141.592 (2019-04-18)
|
2
10
|
======================
|
3
11
|
|
@@ -60,7 +60,7 @@ module Selenium
|
|
60
60
|
raise ArgumentError, "cannot find element by #{how.inspect}" unless by
|
61
61
|
|
62
62
|
bridge.find_element_by by, what.to_s, ref
|
63
|
-
rescue Selenium::WebDriver::Error::
|
63
|
+
rescue Selenium::WebDriver::Error::TimeoutError
|
64
64
|
# Implicit Wait times out in Edge
|
65
65
|
raise Selenium::WebDriver::Error::NoSuchElementError
|
66
66
|
end
|
@@ -78,7 +78,7 @@ module Selenium
|
|
78
78
|
raise ArgumentError, "cannot find elements by #{how.inspect}" unless by
|
79
79
|
|
80
80
|
bridge.find_elements_by by, what.to_s, ref
|
81
|
-
rescue Selenium::WebDriver::Error::
|
81
|
+
rescue Selenium::WebDriver::Error::TimeoutError
|
82
82
|
# Implicit Wait times out in Edge
|
83
83
|
[]
|
84
84
|
end
|
@@ -65,26 +65,37 @@ module Selenium
|
|
65
65
|
arr << Errno::EALREADY if Platform.wsl?
|
66
66
|
}.freeze
|
67
67
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
68
|
+
if Platform.jruby?
|
69
|
+
# we use a plain TCPSocket here since JRuby has issues select()ing on a connecting socket
|
70
|
+
# see http://jira.codehaus.org/browse/JRUBY-5165
|
71
|
+
def listening?
|
72
|
+
TCPSocket.new(@host, @port).close
|
73
|
+
true
|
74
|
+
rescue *NOT_CONNECTED_ERRORS
|
75
|
+
false
|
76
|
+
end
|
77
|
+
else
|
78
|
+
def listening?
|
79
|
+
addr = Socket.getaddrinfo(@host, @port, Socket::AF_INET, Socket::SOCK_STREAM)
|
80
|
+
sock = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0)
|
81
|
+
sockaddr = Socket.pack_sockaddr_in(@port, addr[0][3])
|
82
|
+
|
83
|
+
begin
|
84
|
+
sock.connect_nonblock sockaddr
|
85
|
+
rescue Errno::EINPROGRESS
|
86
|
+
retry if socket_writable?(sock) && conn_completed?(sock)
|
87
|
+
raise Errno::ECONNREFUSED
|
88
|
+
rescue *CONNECTED_ERRORS
|
89
|
+
# yay!
|
90
|
+
end
|
91
|
+
|
92
|
+
sock.close
|
93
|
+
true
|
94
|
+
rescue *NOT_CONNECTED_ERRORS
|
95
|
+
sock&.close
|
96
|
+
WebDriver.logger.debug("polling for socket on #{[@host, @port].inspect}")
|
97
|
+
false
|
80
98
|
end
|
81
|
-
|
82
|
-
sock.close
|
83
|
-
true
|
84
|
-
rescue *NOT_CONNECTED_ERRORS
|
85
|
-
sock&.close
|
86
|
-
WebDriver.logger.debug("polling for socket on #{[@host, @port].inspect}")
|
87
|
-
false
|
88
99
|
end
|
89
100
|
|
90
101
|
def socket_writable?(sock)
|
@@ -43,7 +43,7 @@ module Selenium
|
|
43
43
|
#
|
44
44
|
# Wait until the given block returns a true value.
|
45
45
|
#
|
46
|
-
# @raise [Error::
|
46
|
+
# @raise [Error::TimeoutError]
|
47
47
|
# @return [Object] the result of the block
|
48
48
|
#
|
49
49
|
|
@@ -70,7 +70,7 @@ module Selenium
|
|
70
70
|
|
71
71
|
msg << " (#{last_error.message})" if last_error
|
72
72
|
|
73
|
-
raise Error::
|
73
|
+
raise Error::TimeoutError, msg
|
74
74
|
end
|
75
75
|
|
76
76
|
private
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: selenium-webdriver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.141.
|
4
|
+
version: 3.141.5926
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Rodionov
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-04-
|
13
|
+
date: 2019-04-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|