File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change
1
+ import math
2
+
3
+
1
4
class ProxyConfigurationBuilder :
2
5
"""
3
6
Reference: https://www.w3.org/TR/webdriver/#dfn-proxy-configuration
@@ -115,20 +118,26 @@ def __init__(self) -> None:
115
118
self .__timeouts = {}
116
119
117
120
def implicit (self , timeout : int ):
121
+ """Notice: if the number is a float, converts it to an integer"""
122
+ timeout = math .ceil (timeout )
118
123
self .__timeouts = {
119
124
** self .__timeouts ,
120
125
"implicit" : timeout ,
121
126
}
122
127
return self
123
128
124
129
def page_load (self , timeout : int ):
130
+ """Notice: if the number is a float, converts it to an integer"""
131
+ timeout = math .ceil (timeout )
125
132
self .__timeouts = {
126
133
** self .__timeouts ,
127
134
"pageLoad" : timeout ,
128
135
}
129
136
return self
130
137
131
138
def script (self , timeout : int ):
139
+ """Notice: if the number is a float, converts it to an integer"""
140
+ timeout = math .ceil (timeout )
132
141
self .__timeouts = {
133
142
** self .__timeouts ,
134
143
"script" : timeout ,
You can’t perform that action at this time.
0 commit comments