File tree 1 file changed +13
-0
lines changed
py/selenium/webdriver/remote
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -138,14 +138,27 @@ class RemoteConnection(object):
138
138
139
139
@classmethod
140
140
def get_timeout (cls ):
141
+ """
142
+ :Returns:
143
+ Timeout value in seconds for all http requests made to the Remote Connection
144
+ """
141
145
return None if cls ._timeout == socket ._GLOBAL_DEFAULT_TIMEOUT or cls ._timeout
142
146
143
147
@classmethod
144
148
def set_timeout (cls , timeout ):
149
+ """
150
+ Override the default timeout
151
+
152
+ :Args:
153
+ - timeout - timeout value for http requests in seconds
154
+ """
145
155
cls ._timeout = timeout
146
156
147
157
@classmethod
148
158
def reset_timeout (cls ):
159
+ """
160
+ Reset the http request timeout to socket._GLOBAL_DEFAULT_TIMEOUT
161
+ """
149
162
cls ._timeout = socket ._GLOBAL_DEFAULT_TIMEOUT
150
163
151
164
def __init__ (self , remote_server_addr , keep_alive = False ):
You can’t perform that action at this time.
0 commit comments