selenium-webdriver 4.0.0.rc2 → 4.0.0.rc3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ab22cf48ce547f745515fdd60b09f44788f92bc7a6a339c43462c53d8161cab
|
4
|
+
data.tar.gz: 898185398832035b0c29294eb83f05883650ff3e61a5ecdc3da8842a454c28bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9147cc75bbabff4744ba484bbf23e4fd5a6d683e201315eb42f536f07f35789a78151f3b5abc53da60624c5681f90e064da5ec5dd30117bbb8d33b71f1b37b6a
|
7
|
+
data.tar.gz: 173788de6fc1b98ac83255f49cf8e03a5e7d1b7c68853077a7a6d6b96880e768daad66aaa2f228e72d8f76db4c8c13070c762860a6ecccbaf98e4190c1ccf990
|
data/CHANGES
CHANGED
@@ -24,22 +24,49 @@ module Selenium
|
|
24
24
|
@bridge = bridge
|
25
25
|
end
|
26
26
|
|
27
|
+
#
|
28
|
+
# Gets the amount of time the driver should wait when searching for elements.
|
29
|
+
#
|
30
|
+
|
31
|
+
def implicit_wait
|
32
|
+
Float(@bridge.timeouts['implicit']) / 1000
|
33
|
+
end
|
34
|
+
|
27
35
|
#
|
28
36
|
# Set the amount of time the driver should wait when searching for elements.
|
29
37
|
#
|
30
38
|
|
31
39
|
def implicit_wait=(seconds)
|
32
|
-
@bridge.
|
40
|
+
@bridge.timeouts = {'implicit' => Integer(seconds * 1000)}
|
33
41
|
end
|
34
42
|
|
43
|
+
#
|
44
|
+
# Gets the amount of time to wait for an asynchronous script to finish
|
45
|
+
# execution before throwing an error.
|
46
|
+
#
|
47
|
+
|
48
|
+
def script
|
49
|
+
Float(@bridge.timeouts['script']) / 1000
|
50
|
+
end
|
51
|
+
alias_method :script_timeout, :script
|
52
|
+
|
35
53
|
#
|
36
54
|
# Sets the amount of time to wait for an asynchronous script to finish
|
37
55
|
# execution before throwing an error. If the timeout is negative, then the
|
38
56
|
# script will be allowed to run indefinitely.
|
39
57
|
#
|
40
58
|
|
41
|
-
def
|
42
|
-
@bridge.
|
59
|
+
def script=(seconds)
|
60
|
+
@bridge.timeouts = {'script' => Integer(seconds * 1000)}
|
61
|
+
end
|
62
|
+
alias_method :script_timeout=, :script=
|
63
|
+
|
64
|
+
#
|
65
|
+
# Gets the amount of time to wait for a page load to complete before throwing an error.
|
66
|
+
#
|
67
|
+
|
68
|
+
def page_load
|
69
|
+
Float(@bridge.timeouts['pageLoad']) / 1000
|
43
70
|
end
|
44
71
|
|
45
72
|
#
|
@@ -48,7 +75,7 @@ module Selenium
|
|
48
75
|
#
|
49
76
|
|
50
77
|
def page_load=(seconds)
|
51
|
-
@bridge.
|
78
|
+
@bridge.timeouts = {'pageLoad' => Integer(seconds * 1000)}
|
52
79
|
end
|
53
80
|
end # Timeouts
|
54
81
|
end # WebDriver
|
@@ -93,17 +93,16 @@ module Selenium
|
|
93
93
|
execute :get, {}, {url: url}
|
94
94
|
end
|
95
95
|
|
96
|
-
|
97
|
-
|
98
|
-
|
96
|
+
#
|
97
|
+
# timeouts
|
98
|
+
#
|
99
99
|
|
100
|
-
def
|
101
|
-
|
100
|
+
def timeouts
|
101
|
+
execute :get_timeouts, {}
|
102
102
|
end
|
103
103
|
|
104
|
-
def
|
105
|
-
|
106
|
-
execute :set_timeout, {}, {type => milliseconds}
|
104
|
+
def timeouts=(timeouts)
|
105
|
+
execute :set_timeout, {}, timeouts
|
107
106
|
end
|
108
107
|
|
109
108
|
#
|
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: 4.0.0.
|
4
|
+
version: 4.0.0.rc3
|
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: 2021-
|
13
|
+
date: 2021-10-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: childprocess
|