File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import math
2+
3+
14class ProxyConfigurationBuilder :
25 """
36 Reference: https://www.w3.org/TR/webdriver/#dfn-proxy-configuration
@@ -115,20 +118,26 @@ def __init__(self) -> None:
115118 self .__timeouts = {}
116119
117120 def implicit (self , timeout : int ):
121+ """Notice: if the number is a float, converts it to an integer"""
122+ timeout = math .ceil (timeout )
118123 self .__timeouts = {
119124 ** self .__timeouts ,
120125 "implicit" : timeout ,
121126 }
122127 return self
123128
124129 def page_load (self , timeout : int ):
130+ """Notice: if the number is a float, converts it to an integer"""
131+ timeout = math .ceil (timeout )
125132 self .__timeouts = {
126133 ** self .__timeouts ,
127134 "pageLoad" : timeout ,
128135 }
129136 return self
130137
131138 def script (self , timeout : int ):
139+ """Notice: if the number is a float, converts it to an integer"""
140+ timeout = math .ceil (timeout )
132141 self .__timeouts = {
133142 ** self .__timeouts ,
134143 "script" : timeout ,
You can’t perform that action at this time.
0 commit comments